File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 27
27
"""
28
28
29
29
import os
30
+ import uuid
30
31
from operator import itemgetter
31
32
from random import shuffle , randint , uniform
32
33
@@ -152,6 +153,10 @@ def accept(self):
152
153
""" Ok button clicked """
153
154
log .info ('accept' )
154
155
156
+ # Transaction id to group all updates together
157
+ tid = str (uuid .uuid4 ())
158
+ get_app ().updates .transaction_id = tid
159
+
155
160
# Get settings from form
156
161
start_position = self .txtStartTime .value ()
157
162
track_num = self .cmbTrack .currentData ()
@@ -376,6 +381,9 @@ def accept(self):
376
381
# Increment position by length of clip
377
382
position += (end_time - start_time )
378
383
384
+ # Clear transaction
385
+ get_app ().updates .transaction_id = None
386
+
379
387
# Accept dialog
380
388
super (AddToTimeline , self ).accept ()
381
389
You can’t perform that action at this time.
0 commit comments