Skip to content

Commit

Permalink
Fix bug in clearing incomplete encodes.
Browse files Browse the repository at this point in the history
resolves #110
  • Loading branch information
dfaker committed Mar 18, 2024
1 parent 249bf74 commit 568b34b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mergeSelectionUi.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def __init__(self, master=None, *args, encodeRequestId=None,controller=None, tar

self.encodeRequestId = encodeRequestId
self.cancelled = False
self.iscomplete = False
self.controller = controller
self.config(padding='2', relief='raised')
self.clip = clip
Expand Down Expand Up @@ -408,6 +409,7 @@ def updateStatus(self,status,percent,finalFilename=None,requestStatus=None, enco

if finalFilename is not None:
self.finalFilename = finalFilename
self.iscomplete = True
self.controller.registerComplete(self.finalFilename,clip=self.clip)

if percent is not None:
Expand Down Expand Up @@ -1859,7 +1861,8 @@ def clearSequence(self,includeProgress=True):
self.syncModal.recalculateEDLTimings()
if includeProgress:
for e in self.encoderProgress:
e.remove()
if e.iscomplete or e.cancelled:
e.remove()

def profileChanged(self,*args):
profileName = self.profileVar.get()
Expand Down

0 comments on commit 568b34b

Please sign in to comment.