mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-02-15 16:51:39 +00:00
Apply @arsenetar's proposed change to fix for errors on window change event. Solves #937. (#980)
This commit is contained in:
@@ -221,7 +221,7 @@ class TabWindow(QMainWindow):
|
|||||||
super().showEvent(event)
|
super().showEvent(event)
|
||||||
|
|
||||||
def changeEvent(self, 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)
|
move_to_screen_center(self)
|
||||||
super().changeEvent(event)
|
super().changeEvent(event)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user