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
@ -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…
Reference in New Issue
Block a user