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



commit 7b0e3a0f1f85b302b3d3f68a3fb014526fdb1fcf
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..46596755 100644
--- a/gnomemusic/views/emptyview.py
+++ b/gnomemusic/views/emptyview.py
@@ -70,6 +70,7 @@ class EmptyView(Gtk.Stack):
             assert music_folder is not None
         except (TypeError, AssertionError):
             print("XDG Music dir is not set")
+            self._content_text = ""
             return
 
         music_folder = Tracker.sparql_escape_string(


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