Skip to content

Commit

Permalink
fix: Responding to proxy change signals (linuxdeepin#58)
Browse files Browse the repository at this point in the history
Responding to proxy change signals

Issue: linuxdeepin/developer-center#9711
  • Loading branch information
caixr23 authored Jul 19, 2024
1 parent eb5ea8d commit 593c40b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,9 @@ void NetManagerThreadPrivate::doInit()
networkController->proxyController()->querySysProxyData();
ProxyMethod method = networkController->proxyController()->proxyMethod();
const bool enabled = method == ProxyMethod::Auto || method == ProxyMethod::Manual;
if (enabled) {
ConfigWatcher::instance()->setProxyMethod(method);
}
Q_EMIT dataChanged(DataChanged::EnabledChanged, "NetSystemProxyControlItem", enabled);
};
auto systemProxyExistChanged = [this, networkController] {
Expand Down

0 comments on commit 593c40b

Please sign in to comment.