audioDeviceSelection: Only include settings button when allowed

https://gitlab.gnome.org/GNOME/gnome-shell/issues/909
This commit is contained in:
Florian Müllner 2019-01-15 20:12:04 +01:00 committed by Florian Müllner
parent f8ce47c24d
commit 62abf3edc7

View File

@ -56,6 +56,7 @@ var AudioDeviceSelectionDialog = new Lang.Class({
this._selectionBox = new St.BoxLayout({ style_class: 'audio-selection-box' });
this.contentLayout.add(this._selectionBox, { expand: true });
if (Main.sessionMode.allowSettings)
this.addButton({ action: this._openSettings.bind(this),
label: _("Sound Settings") });
this.addButton({ action: this.close.bind(this),