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



commit 3650ba742e85011f983a7e0b3e0bb8190f9a65f2
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".
    
    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]