fix status bar text prevents window from being made smaller

This commit is contained in:
2022-09-17 10:28:39 +02:00
parent 5c7c057260
commit 84ba6e3766
2 changed files with 1 additions and 4 deletions

View File

@@ -41,9 +41,6 @@ class MainWindow(QMainWindow):
self._menu_recent_files = QMenu(_("Open &Recent"), self)
self.setCentralWidget(self.tabs)
self.status_bar = QStatusBar(self)
self.status_bar_text = QLabel("");
self.status_bar_text.setTextInteractionFlags(Qt.TextInteractionFlag.TextSelectableByMouse)
self.status_bar.addWidget(self.status_bar_text)
self.setStatusBar(self.status_bar)
self.setMenuBar(self.create_dynamic_menu_bar())

View File

@@ -87,7 +87,7 @@ class KrowLogPlugin(PluginBase):
def update_status_bar(self, text: str):
if not self.main_window:
return
self.main_window.status_bar_text.setText(text)
self.main_window.status_bar.showMessage(text)
def update_ui(self):
self.main_window.update()