audioDeviceSelection: Ensure close() is called with no arguments

This is the same as commit c5b18ee66a, but for the audio device selection
dialog.

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 16:01:19 +02:00
parent 7935da6168
commit 7eba5322b5

View File

@ -57,7 +57,7 @@ var AudioDeviceSelectionDialog = GObject.registerClass({
}); });
} }
this.addButton({ this.addButton({
action: this.close.bind(this), action: () => this.close(),
label: _('Cancel'), label: _('Cancel'),
key: Clutter.KEY_Escape, key: Clutter.KEY_Escape,
}); });