[gnome-shell/benzea/systemd-user-units: 206/211] extensionPrefs: Allow disabling extensions when globally disabled
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/benzea/systemd-user-units: 206/211] extensionPrefs: Allow disabling extensions when globally disabled
- Date: Thu, 1 Aug 2019 16:41:34 +0000 (UTC)
commit 6f76a791a5d70e85b68b2971d39582bedc497649
Author: Benjamin Berg <bberg redhat com>
Date: Thu Aug 1 16:48:56 2019 +0200
extensionPrefs: Allow disabling extensions when globally disabled
To do this, simply use the new isEnabled property to properly reflect
the underlying settings key rather than the actual loaded state of the
extension.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/507
js/extensionPrefs/main.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/js/extensionPrefs/main.js b/js/extensionPrefs/main.js
index aa3659f2d..7b15d3ed9 100644
--- a/js/extensionPrefs/main.js
+++ b/js/extensionPrefs/main.js
@@ -603,6 +603,7 @@ class ExtensionRow extends Gtk.ListBoxRow {
this._extension = ExtensionUtils.deserializeExtension(newState);
let state = (this._extension.state == ExtensionState.ENABLED);
this._switch.state = state;
+ this._switch.active = this._extension.isEnabled;
this._switch.sensitive = this._canToggle();
});
@@ -672,7 +673,8 @@ class ExtensionRow extends Gtk.ListBoxRow {
this._switch = new Gtk.Switch({
valign: Gtk.Align.CENTER,
sensitive: this._canToggle(),
- state: this._extension.state === ExtensionState.ENABLED
+ state: this._extension.state === ExtensionState.ENABLED,
+ active: this._extension.isEnabled
});
this._switch.connect('notify::active', () => {
if (this._switch.active)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]