Skip to content

Commit 7f8107a

Browse files
committed
main_window: Persist statusBar as a class member
1 parent ee43136 commit 7f8107a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/windows/main_window.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -532,10 +532,6 @@ def open_project(self, file_path, clear_thumbnails=True):
532532

533533
log.info("Loaded project {}".format(file_path))
534534
else:
535-
# Prepare to use status bar
536-
self.statusBar = QStatusBar()
537-
self.setStatusBar(self.statusBar)
538-
539535
log.info("File not found at {}".format(file_path))
540536
self.statusBar.showMessage(_("Project {} is missing (it may have been moved or deleted). It has been removed from the Recent Projects menu.".format(file_path)), 5000)
541537
self.remove_recent_project(file_path)
@@ -2553,6 +2549,10 @@ def __init__(self, mode=None):
25532549
self.effectsTreeView = EffectsListView(self)
25542550
self.tabEffects.layout().addWidget(self.effectsTreeView)
25552551

2552+
# Set up status bar
2553+
self.statusBar = QStatusBar()
2554+
self.setStatusBar(self.statusBar)
2555+
25562556
# Process events before continuing
25572557
# TODO: Figure out why this is needed for a backup recovery to correctly show up on the timeline
25582558
app.processEvents()

0 commit comments

Comments
 (0)