Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:GA
gnome-shell.22882
gnome-shell-network-agent-not-pop-up.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gnome-shell-network-agent-not-pop-up.patch of Package gnome-shell.22882
diff --git a/js/ui/components/networkAgent.js b/js/ui/components/networkAgent.js index 7af6214..b93f2c9 100644 --- a/js/ui/components/networkAgent.js +++ b/js/ui/components/networkAgent.js @@ -628,6 +628,20 @@ var NetworkAgent = class { this._native.connect('cancel-request', this._cancelRequest.bind(this)); this._initialized = false; + + NM.Client.new_async(null, this._clientGot.bind(this)); + } + + _clientGot(obj, result) { + this._client = NM.Client.new_finish(result); + this._client.connect('notify::nm-running', this._initNative.bind(this)); + this._initNative(); + } + + _initNative() { + if (!this._client.nm_running || this._initialized) + return; + this._native.init_async(GLib.PRIORITY_DEFAULT, null, (o, res) => { try { this._native.init_finish(res);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor