[pitivi] clipproperties: Hide the clip speed functionality
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] clipproperties: Hide the clip speed functionality
- Date: Sun, 30 May 2021 18:00:41 +0000 (UTC)
commit 81bc5b158d4b0ea6088bb80addf8db27430757f3
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Sun May 30 00:57:24 2021 +0200
clipproperties: Hide the clip speed functionality
To be reverted when #2553 is fixed.
pitivi/clipproperties.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/clipproperties.py b/pitivi/clipproperties.py
index ead9e5cd2..c7d47e3a4 100644
--- a/pitivi/clipproperties.py
+++ b/pitivi/clipproperties.py
@@ -38,6 +38,7 @@ from pitivi.clip_properties.color import ColorProperties
from pitivi.clip_properties.title import TitleProperties
from pitivi.configure import get_pixmap_dir
from pitivi.configure import get_ui_dir
+from pitivi.configure import in_devel
from pitivi.effects import EffectsPopover
from pitivi.effects import EffectsPropertiesManager
from pitivi.effects import HIDDEN_EFFECTS
@@ -106,7 +107,8 @@ class ClipProperties(Gtk.ScrolledWindow, Loggable):
self.speed_expander = TimeProperties(app)
self.speed_expander.set_vexpand(False)
- vbox.pack_start(self.speed_expander, False, False, 0)
+ if in_devel():
+ vbox.pack_start(self.speed_expander, False, False, 0)
self.title_expander = TitleProperties(app)
self.title_expander.set_vexpand(False)
@@ -232,7 +234,7 @@ class ClipProperties(Gtk.ScrolledWindow, Loggable):
def is_time_effect(effect):
- return bool(effect.get_meta(TimeProperties.TIME_EFFECT_META))
+ return bool(effect.get_meta(TimeProperties.TIME_EFFECT_META)) and in_devel()
class TimeProperties(Gtk.Expander, Loggable):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]