Commit e9a54e65 authored by Alexandru Băluț's avatar Alexandru Băluț
Browse files

viewer: Allow dragging the corner when the project is empty

parent fa01d1e6
......@@ -168,7 +168,6 @@ class ViewerContainer(Gtk.Box, Loggable):
def _setUiActive(self, active=True):
self.debug("active %r", active)
if self._haveUI:
for item in [self.goToStart_button, self.back_button,
self.playpause_button, self.forward_button,
......@@ -357,10 +356,7 @@ class ViewerContainer(Gtk.Box, Loggable):
# Active Timeline calllbacks
def _durationChangedCb(self, unused_pipeline, duration):
if duration == 0:
self._setUiActive(duration > 0)
def _playButtonCb(self, unused_button, unused_playing):
......@@ -493,8 +489,7 @@ class ViewerContainer(Gtk.Box, Loggable):
def clipTrimPreview(self, clip, position):
"""Shows a live preview of a clip being trimmed."""
if not hasattr(clip, "get_uri") or isinstance(clip, GES.TitleClip) or clip.props.is_image:
"%s is an image or has no URI, so not previewing trim" % clip)
self.log("Not previewing trim for image or title clip: %s", clip)
return False
clip_uri = clip.props.uri
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