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:
Florian Müllner 2021-04-19 17:46:23 +02:00
parent 6159a91660
commit 7935da6168

View File

@ -51,12 +51,16 @@ var AudioDeviceSelectionDialog = GObject.registerClass({
this.contentLayout.add_child(content);
if (Main.sessionMode.allowSettings) {
this.addButton({ action: this._openSettings.bind(this),
label: _("Sound Settings") });
this.addButton({
action: this._openSettings.bind(this),
label: _('Sound Settings'),
});
}
this.addButton({ action: this.close.bind(this),
label: _("Cancel"),
key: Clutter.KEY_Escape });
this.addButton({
action: this.close.bind(this),
label: _('Cancel'),
key: Clutter.KEY_Escape,
});
}
_getDeviceLabel(device) {