Skip to content

Commit 2d1c19c

Browse files
Added "busy" cursor while saving
1 parent 68dd12d commit 2d1c19c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

main.pyw

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2059,8 +2059,10 @@ class GUI_Instance(QtW.QMainWindow, Ui_MainWindow):
20592059
self.locked_video = video
20602060
logging.info(f'Video locked during edits: {self.locked_video}')
20612061

2062+
# display indeterminant progress bar, set busy cursor, and update UI to frame 0
20622063
#self.frame_override = 0
2063-
self.show_save_progress_signal.emit(True) # show transparent indeterminant progress bar over statusbar
2064+
self.show_save_progress_signal.emit(True)
2065+
self.setCursor(Qt.BusyCursor)
20642066
update_progress_signal.emit(0)
20652067

20662068
try:
@@ -2191,7 +2193,8 @@ class GUI_Instance(QtW.QMainWindow, Ui_MainWindow):
21912193
except: self.log(f'(!) SAVE FAILED: {format_exc()}')
21922194
finally:
21932195
self.locked_video = None # unlock video if needed
2194-
self.show_save_progress_signal.emit(False) # make sure we hide the progress bar no matter what
2196+
self.show_save_progress_signal.emit(False) # hide the progress bar no matter what
2197+
self.unsetCursor() # restore cursor no matter what
21952198
self.setFocus(True) # restore keyboard focus so we can use hotkeys again
21962199

21972200

0 commit comments

Comments
 (0)