1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2024-11-16 20:29:02 +00:00

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

This commit is contained in:
Alfonso Montero 2022-03-12 19:39:54 +01:00 committed by GitHub
parent 4b2fbe87ea
commit 32855f6f54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)