[gnome-music/wip/mschraal/coremodel-dont-bind-validation] coremodel: Don't bind player validation
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/coremodel-dont-bind-validation] coremodel: Don't bind player validation
- Date: Mon, 23 Mar 2020 10:31:54 +0000 (UTC)
commit 32fc57fada142abecfdc83f40d2813c14eea8012
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]