[gnome-shell/gnome-3-38] audioDeviceSelection: Ensure close() is called with no arguments



commit 17a514910ba94f86b61de8a52ceeb9d9896e6f04
Author: Florian Müllner <fmuellner gnome org>
Date:   Mon Apr 19 16:01:19 2021 +0200

    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>
    (cherry picked from commit 7eba5322b51969c0fe456e2d737423094afccbb7)

 js/ui/audioDeviceSelection.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/audioDeviceSelection.js b/js/ui/audioDeviceSelection.js
index abd8efaaed..8660663f92 100644
--- a/js/ui/audioDeviceSelection.js
+++ b/js/ui/audioDeviceSelection.js
@@ -57,7 +57,7 @@ var AudioDeviceSelectionDialog = GObject.registerClass({
             });
         }
         this.addButton({
-            action: this.close.bind(this),
+            action: () => this.close(),
             label: _('Cancel'),
             key: Clutter.KEY_Escape,
         });


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]