mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
powerProfiles: Avoid warnings on missing power-profiles-daemon
GDBusProxy transparently handles the remote object appearing and vanishing. It is therefore not an error if the service is not running at the time the proxy is initialized, so we proceed and try to read the list of profiles which is null in that case, resulting in (harmless but annoying) warnings. Avoid this by only reading the initial list of profiles if the service has a name owner. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5992 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2518>
This commit is contained in:
parent
ea7b29e049
commit
cbbc066d6f
1 changed files with 3 additions and 1 deletions
|
|
@ -58,7 +58,9 @@ class PowerProfilesToggle extends QuickMenuToggle {
|
|||
this._syncProfiles();
|
||||
this._sync();
|
||||
});
|
||||
this._syncProfiles();
|
||||
|
||||
if (this._proxy.g_name_owner)
|
||||
this._syncProfiles();
|
||||
}
|
||||
this._sync();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue