From 4c495380a518bbcd61cdf6fadb6b76561b155427 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Mon, 15 Aug 2022 14:33:00 +0200 Subject: [PATCH] status/nightLight: Hide when unsupported https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5752 Part-of: --- js/ui/status/nightLight.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/ui/status/nightLight.js b/js/ui/status/nightLight.js index 1a0ee303a..0d148e3ce 100644 --- a/js/ui/status/nightLight.js +++ b/js/ui/status/nightLight.js @@ -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', });