network: remove incorrect assertion that breaks proxy settings page

When the proxy switch is flipped from enabled to disabled, we assert
that there are no unmodified settings to be flushed to GSettings. This
is wrong because it's expected that settings will not be flushed if the
user did not yet press Save.

Fixes #2996
This commit is contained in:
Michael Catanzaro 2024-05-03 10:14:48 -05:00 committed by Matthijs Velsink
parent 7007aaabe0
commit 82986f3e92

View file

@ -458,9 +458,6 @@ cc_net_proxy_page_set_enabled (CcNetProxyPage *self,
g_return_if_fail (CC_IS_NET_PROXY_PAGE (self));
/* Proxy should not have changed when enabling/disabling */
g_return_if_fail (!cc_net_proxy_page_has_modified (self));
mode = g_settings_get_enum (self->settings, "mode");
/*