Skip to content

Commit

Permalink
ProxyConfigurationPage: Clean up and DRY (#384)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeremy Wootten <jeremywootten@gmail.com>
  • Loading branch information
danirabbit and jeremypw authored Jan 12, 2024
1 parent 6f7f391 commit 07db504
Show file tree
Hide file tree
Showing 2 changed files with 185 additions and 278 deletions.
4 changes: 3 additions & 1 deletion src/Views/ProxyPage.vala
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ namespace Network.Widgets {
}

protected override void control_switch_activated () {
if (!status_switch.active) {
if (status_switch.active) {
Network.Plug.proxy_settings.set_string ("mode", "auto");
} else {
Network.Plug.proxy_settings.set_string ("mode", "none");
}
}
Expand Down
Loading

0 comments on commit 07db504

Please sign in to comment.