[gnome-music/wip/jfelder/3-34-music-dir-not-set: 2/2] emptyview: Do not crash if xdg music dir is not set



commit 95591440e389cf706ddc20cece107eb8f00a64c5
Author: Jean Felder <jfelder src gnome org>
Date:   Sun Nov 10 13:42:21 2019 +0100

    emptyview: Do not crash if xdg music dir is not set

 gnomemusic/views/emptyview.py | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gnomemusic/views/emptyview.py b/gnomemusic/views/emptyview.py
index 1e4c989c..6c96cb24 100644
--- a/gnomemusic/views/emptyview.py
+++ b/gnomemusic/views/emptyview.py
@@ -69,6 +69,7 @@ class EmptyView(Gtk.Stack):
                 GLib.UserDirectory.DIRECTORY_MUSIC)
             assert music_folder is not None
         except (TypeError, AssertionError):
+            self._content_text = ""
             print("XDG Music dir is not set")
             return
 


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