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



commit 7c70358d49c9cce4103738f1b7d5b877302ac2fa
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 57aabd9..91a859e 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -370,7 +370,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]