[gnome-sound-recorder/wip/christopherdavis/set-window-title: 3/3] mainWindow: set a default title for zero sounds recorded



commit 2e290866de3934538313018f20434b6e4b71a841
Author: Christopher Davis <brainblasted disroot org>
Date:   Wed Jan 16 18:52:30 2019 -0500

    mainWindow: set a default title for zero sounds recorded
    
    Previously we set the window's title to "" when there were no
    sounds recorded. On some desktops, this caused an issue where
    sound recorder was labeled "Untitled Window".
    
    Now Sound Recorder sets the title to "No Recorded Sounds".
    
    Fixes https://gitlab.gnome.org/GNOME/gnome-sound-recorder/issues/34

 src/mainWindow.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 3ac5cc2..4a05160 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -368,7 +368,7 @@ var MainView = new Lang.Class({
                                      "%d Recorded Sounds",
                                       sounds).format(sounds);
         } else {
-            title = "";
+            title = Gettext.gettext("No Recorded Sounds");
         }
         header.set_title(title);
 


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