[gnome-music] toolbar: Check selection mode before state on update



commit fba2d813e2319e1082e797975fad8fb043f706ca
Author: Arnel Borja <arnelborja src gnome org>
Date:   Thu May 8 23:13:15 2014 +0800

    toolbar: Check selection mode before state on update

 gnomemusic/toolbar.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/toolbar.py b/gnomemusic/toolbar.py
index 0597588..6b2ad79 100644
--- a/gnomemusic/toolbar.py
+++ b/gnomemusic/toolbar.py
@@ -134,10 +134,10 @@ class Toolbar(GObject.GObject):
 
     @log
     def _update(self):
-        if self._state != ToolbarState.MAIN:
-            self.header_bar.set_custom_title(None)
-        elif self._selectionMode:
+        if self._selectionMode:
             self.header_bar.set_custom_title(self._selection_menu_button)
+        elif self._state != ToolbarState.MAIN:
+            self.header_bar.set_custom_title(None)
         else:
             self.reset_header_title()
 


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