[gnome-music/wip/mschraal/coremodel-dont-bind-validation: 2/2] coremodel: Don't bind player validation



commit 0089ca26e055687029828d9be24c9b700b9d7a15
Author: Marinus Schraal <mschraal gnome org>
Date:   Mon Mar 23 11:23:35 2020 +0100

    coremodel: Don't bind player validation
    
    Since fb9878fac8 starting to play a song from a new set player playlist
    is relatively slow. It is however unneeded to bind validation back to
    the main model song as it is just a short-lived playability check for
    local songs.
    
    Remove the validation property binding to remedy the slowness.

 gnomemusic/coremodel.py | 3 ---
 1 file changed, 3 deletions(-)
---
diff --git a/gnomemusic/coremodel.py b/gnomemusic/coremodel.py
index ef3b19ce..e5372662 100644
--- a/gnomemusic/coremodel.py
+++ b/gnomemusic/coremodel.py
@@ -236,9 +236,6 @@ class CoreModel(GObject.GObject):
                 "state", player_song, "state",
                 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]