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

undo: Enable undo/redo in devel

Required to be able to test the fixes which seem to be many.

Differential Revision: https://phabricator.freedesktop.org/D631
parent 6743d1d0
......@@ -29,7 +29,7 @@ from gi.repository import Gio
from gi.repository import Gtk
from gi.repository import Gst
from pitivi.configure import VERSION, RELEASES_URL
from pitivi.configure import VERSION, RELEASES_URL, in_devel
from pitivi.dialogs.startupwizard import StartUpWizard
from pitivi.effects import EffectsManager
from pitivi.mainwindow import PitiviMainWindow
......@@ -358,7 +358,7 @@ class Pitivi(Gtk.Application, Loggable):
def _syncDoUndo(self, action_log):
can_undo = bool(action_log.undo_stacks)
# TODO: Remove this once we revisit undo/redo T3360
can_undo = False
can_undo = in_devel()
self.undo_action.set_enabled(can_undo)
can_redo = bool(action_log.redo_stacks)
......
......@@ -447,9 +447,10 @@ class PitiviMainWindow(Gtk.ApplicationWindow, Loggable):
self.render_button.connect("clicked", self._renderCb)
# TODO: Add these back once we revisit undo/redo T3360
# self._headerbar.pack_start(undo_button)
# self._headerbar.pack_start(redo_button)
# self._headerbar.pack_start(separator)
if in_devel():
self._headerbar.pack_start(undo_button)
self._headerbar.pack_start(redo_button)
self._headerbar.pack_start(separator)
self._headerbar.pack_start(self.save_button)
self._headerbar.pack_start(self.render_button)
......
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