[gnome-shell/wip/fmuellner/audio-selection-settings] audioDeviceSelection: Only include settings button when allowed



commit 4ba81b90eeee8879f797e076af2a44332d4b49d4
Author: Florian Müllner <fmuellner gnome org>
Date:   Tue Jan 15 20:12:04 2019 +0100

    audioDeviceSelection: Only include settings button when allowed
    
    https://gitlab.gnome.org/GNOME/gnome-shell/issues/909

 js/ui/audioDeviceSelection.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/audioDeviceSelection.js b/js/ui/audioDeviceSelection.js
index 3f4b9bcc7..b44a3e7ac 100644
--- a/js/ui/audioDeviceSelection.js
+++ b/js/ui/audioDeviceSelection.js
@@ -56,8 +56,9 @@ var AudioDeviceSelectionDialog = new Lang.Class({
         this._selectionBox = new St.BoxLayout({ style_class: 'audio-selection-box' });
         this.contentLayout.add(this._selectionBox, { expand: true });
 
-        this.addButton({ action: this._openSettings.bind(this),
-                         label: _("Sound Settings") });
+        if (Main.sessionMode.allowSettings)
+            this.addButton({ action: this._openSettings.bind(this),
+                             label: _("Sound Settings") });
         this.addButton({ action: this.close.bind(this),
                          label: _("Cancel"),
                          key: Clutter.Escape });


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]