mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
status/nightLight: Hide when unsupported
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5752 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2425>
This commit is contained in:
parent
9f8b2213bc
commit
4c495380a5
1 changed files with 5 additions and 0 deletions
|
|
@ -22,6 +22,11 @@ class NightLightToggle extends QuickToggle {
|
|||
toggleMode: true,
|
||||
});
|
||||
|
||||
const monitorManager = global.backend.get_monitor_manager();
|
||||
monitorManager.bind_property('night-light-supported',
|
||||
this, 'visible',
|
||||
GObject.BindingFlags.SYNC_CREATE);
|
||||
|
||||
this._settings = new Gio.Settings({
|
||||
schema_id: 'org.gnome.settings-daemon.plugins.color',
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue