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



commit 594a026e1ed2944f7f27044b4e349a462da4efb4
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..ba17643 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 = _("No Recorded Sounds");
         }
         header.set_title(title);
 


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