[gnome-music/wip/mschraal/core] SelectionToolbar: Set initial button state



commit 214300a0221e526ace2f89807ab6b1fe0187531c
Author: Marinus Schraal <mschraal gnome org>
Date:   Wed Jun 26 16:48:43 2019 +0200

    SelectionToolbar: Set initial button state

 gnomemusic/widgets/selectiontoolbar.py | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gnomemusic/widgets/selectiontoolbar.py b/gnomemusic/widgets/selectiontoolbar.py
index 1d2b775a..16c9472b 100644
--- a/gnomemusic/widgets/selectiontoolbar.py
+++ b/gnomemusic/widgets/selectiontoolbar.py
@@ -50,6 +50,8 @@ class SelectionToolbar(Gtk.ActionBar):
         self.connect(
             'notify::selected-items-count', self._on_item_selection_changed)
 
+        self.notify("selected-items-count")
+
     @Gtk.Template.Callback()
     @log
     def _on_add_to_playlist_button_clicked(self, widget):


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