mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
audioDeviceSelection: Only include settings button when allowed
https://gitlab.gnome.org/GNOME/gnome-shell/issues/909
This commit is contained in:
parent
f8ce47c24d
commit
62abf3edc7
1 changed files with 3 additions and 2 deletions
|
|
@ -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 });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue