[gnome-shell] audioDeviceSelection: Move a method to the new coding style ...



commit 7935da6168aa262781cc5d95f94b63fe54c04124
Author: Florian Müllner <fmuellner gnome org>
Date:   Mon Apr 19 17:46:23 2021 +0200

    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>

 js/ui/audioDeviceSelection.js | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/js/ui/audioDeviceSelection.js b/js/ui/audioDeviceSelection.js
index 07b8171339..abd8efaaed 100644
--- a/js/ui/audioDeviceSelection.js
+++ b/js/ui/audioDeviceSelection.js
@@ -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) {


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