Florian Müllner 2022-08-15 14:33:00 +02:00 committed by Marge Bot
parent 9f8b2213bc
commit 4c495380a5

View File

@ -22,6 +22,11 @@ class NightLightToggle extends QuickToggle {
toggleMode: true, 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({ this._settings = new Gio.Settings({
schema_id: 'org.gnome.settings-daemon.plugins.color', schema_id: 'org.gnome.settings-daemon.plugins.color',
}); });