[gnome-music/wip/mschraal/playlists-fixes: 5/5] coremodel: Bind playlist validation property one way



commit 66b350559b71ce180b86eee841c92c499f727627
Author: Marinus Schraal <mschraal gnome org>
Date:   Sun Mar 1 22:53:54 2020 +0100

    coremodel: Bind playlist validation property one way
    
    Validation is only set in PlayerPlaylist, so having the property binding
    one-way is fine.

 gnomemusic/coremodel.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/gnomemusic/coremodel.py b/gnomemusic/coremodel.py
index 01ef0759..736be432 100644
--- a/gnomemusic/coremodel.py
+++ b/gnomemusic/coremodel.py
@@ -236,10 +236,9 @@ class CoreModel(GObject.GObject):
                 "state", player_song, "state",
                 GObject.BindingFlags.BIDIRECTIONAL
                 | GObject.BindingFlags.SYNC_CREATE)
-            model_song.bind_property(
-                "validation", player_song, "validation",
-                GObject.BindingFlags.BIDIRECTIONAL
-                | GObject.BindingFlags.SYNC_CREATE)
+            player_song.bind_property(
+                "validation", model_song, "validation",
+                GObject.BindingFlags.SYNC_CREATE)
 
         def _on_items_changed(model, position, removed, added):
             songs_list = []


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