[pitivi] clipproperties: Hide effects when more than one clip



commit 8cad8650c69f8261c5b2b3798bf527101a177a0f
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Sat Oct 31 01:31:58 2015 +0100

    clipproperties: Hide effects when more than one clip
    
    Reviewed-by: Thibault Saunier <tsaunier gnome org>
    Differential Revision: https://phabricator.freedesktop.org/D544

 pitivi/clipproperties.py |   21 ++++++++++-----------
 1 files changed, 10 insertions(+), 11 deletions(-)
---
diff --git a/pitivi/clipproperties.py b/pitivi/clipproperties.py
index 0af23c0..70f9f36 100644
--- a/pitivi/clipproperties.py
+++ b/pitivi/clipproperties.py
@@ -421,19 +421,18 @@ class EffectProperties(Gtk.Expander, Loggable):
         return True
 
     def updateAll(self, path=None):
-        if self.get_expanded():
-            if len(self.clips) == 1:
-                self.show()
-                self._infobar.hide()
-                self._updateTreeview()
-                if path:
-                    self.treeview_selection.select_path(path)
-            else:
-                self._removeEffectConfigurationWidget()
-                self.storemodel.clear()
-                self._infobar.show()
+        if len(self.clips) == 1:
+            self.show()
+            self._infobar.hide()
+            self._updateTreeview()
+            if path:
+                self.treeview_selection.select_path(path)
             self._vcontent.show()
         else:
+            self.hide()
+            self._removeEffectConfigurationWidget()
+            self.storemodel.clear()
+            self._infobar.show()
             self._vcontent.hide()
 
     def _updateTreeview(self):


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