audioDeviceSelection: Move a method to the new coding style ...
... before touching its code in the next commit. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4139 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1819>
This commit is contained in:
parent
6159a91660
commit
7935da6168
@ -51,12 +51,16 @@ var AudioDeviceSelectionDialog = GObject.registerClass({
|
|||||||
this.contentLayout.add_child(content);
|
this.contentLayout.add_child(content);
|
||||||
|
|
||||||
if (Main.sessionMode.allowSettings) {
|
if (Main.sessionMode.allowSettings) {
|
||||||
this.addButton({ action: this._openSettings.bind(this),
|
this.addButton({
|
||||||
label: _("Sound Settings") });
|
action: this._openSettings.bind(this),
|
||||||
|
label: _('Sound Settings'),
|
||||||
|
});
|
||||||
}
|
}
|
||||||
this.addButton({ action: this.close.bind(this),
|
this.addButton({
|
||||||
label: _("Cancel"),
|
action: this.close.bind(this),
|
||||||
key: Clutter.KEY_Escape });
|
label: _('Cancel'),
|
||||||
|
key: Clutter.KEY_Escape,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
_getDeviceLabel(device) {
|
_getDeviceLabel(device) {
|
||||||
|
Loading…
Reference in New Issue
Block a user