Apply @arsenetar's proposed change to fix for errors on window change event. Solves #937. (#980)

This commit is contained in:
Alfonso Montero 2022-03-16 02:47:48 +01:00 committed by GitHub
parent b9dfeac2f3
commit b9c7832c4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)