diff --git a/qt/tabbed_window.py b/qt/tabbed_window.py index 2c6e2958..750a95a1 100644 --- a/qt/tabbed_window.py +++ b/qt/tabbed_window.py @@ -221,7 +221,7 @@ class TabWindow(QMainWindow): super().showEvent(event) def changeEvent(self, event): - if event.type() == QEvent.Type.WindowStateChange and not self.isMaximized(): + if event.type() == QEvent.WindowStateChange and not self.isMaximized(): move_to_screen_center(self) super().changeEvent(event)