Fix "Note Types" dialog moving down each time it is opened (#3718)

This commit is contained in:
Ross Brown 2025-01-12 04:33:37 +00:00 committed by GitHub
parent e60fc9cf24
commit 9d5b2805e2

View file

@ -61,13 +61,13 @@ class Models(QDialog):
)
self.models: Sequence[NotetypeNameIdUseCount] = []
self.setupModels()
restoreGeom(self, "models")
self.setWindowFlags(
self.windowFlags()
| Qt.WindowType.WindowMaximizeButtonHint
| Qt.WindowType.WindowMinimizeButtonHint
)
restoreGeom(self, "models")
self.show()