[pitivi] clipproperties: Fix effects expander visibility



commit f06a1582dfe2d8e9eb97921eabe8fc89b79436d9
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Wed Sep 9 22:39:50 2020 +0200

    clipproperties: Fix effects expander visibility
    
    When the selection is composed of a single clip, the effects expander is
    visible but when the selection is cleared it was not hidden when it
    should have been.

 pitivi/clipproperties.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/pitivi/clipproperties.py b/pitivi/clipproperties.py
index b12d44c7e..c714f0bf4 100644
--- a/pitivi/clipproperties.py
+++ b/pitivi/clipproperties.py
@@ -188,9 +188,9 @@ class ClipProperties(Gtk.ScrolledWindow, Loggable):
         video_source = None
         title_source = None
         color_clip_source = None
+        ges_clip = None
         if single_clip_selected:
             ges_clip = list(selected_clips)[0]
-            self.effect_expander.set_clip(ges_clip)
 
             for child in ges_clip.get_children(False):
                 if isinstance(child, GES.VideoSource):
@@ -204,6 +204,7 @@ class ClipProperties(Gtk.ScrolledWindow, Loggable):
         self.transformation_expander.set_source(video_source)
         self.title_expander.set_source(title_source)
         self.color_expander.set_source(color_clip_source)
+        self.effect_expander.set_clip(ges_clip)
 
         self.app.gui.editor.viewer.overlay_stack.select(video_source)
 


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