[7cb676d57114874e00c536916e6dcad2a5d3cb8c9a5abc06335df359cd9a6ef9/gnome-3-36] window: Fix incorrect backport



commit 31fa3d53a08b7c97f0ac02066096a55a05109406
Author: Marinus Schraal <mschraal gnome org>
Date:   Wed Jul 8 12:03:38 2020 +0200

    window: Fix incorrect backport
    
    Commit 0ae8138c is a backport, however the surrounding code has changed,
    so the fix is actually stopping the views from loading.
    
    Add a fix for the views check that works in the 3.36 code base.

 gnomemusic/window.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index 3b56bfb1..939855cb 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -258,7 +258,7 @@ class Window(Gtk.ApplicationWindow):
 
         # All views are created together, so if the album view is
         # already initialized, assume the rest are as well.
-        if self.views[View.ALBUM] is not None:
+        if not isinstance(self.views[View.ALBUM], Gtk.Box):
             return
 
         self.views[View.ALBUM] = AlbumsView(self._app)


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