Commit d68d392d authored by Alexandru Băluț's avatar Alexandru Băluț

viewer: Hide overlays when showing the size percent

If a clip was selected and the viewer was being resized, the respective
overlay remained visible on top of the resize percent and was looking
bad.
parent dc0165d6
Pipeline #81547 passed with stages
in 101 minutes and 30 seconds
......@@ -201,6 +201,7 @@ class OverlayStack(Gtk.Overlay, Loggable):
if not self.revealer.get_reveal_child():
self.revealer.set_transition_duration(10)
self.revealer.set_reveal_child(True)
self.hide_overlays()
video_width = self.app.project_manager.current_project.videowidth
percent = int(allocation.width / video_width * 100)
......@@ -215,4 +216,5 @@ class OverlayStack(Gtk.Overlay, Loggable):
self.__resizing_id = 0
self.revealer.set_transition_duration(500)
self.revealer.set_reveal_child(False)
self.show_overlays()
return False
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment