Add maximize hint for models.py (#3151) (#3328)

Co-authored-by: Christian Donat <cdonat@tu-berlin.de>
This commit is contained in:
cdonat2 2024-08-05 10:21:18 +02:00 committed by GitHub
parent bab83ffce0
commit b1bf1c3141
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View file

@ -182,7 +182,7 @@ Ian Samir Yep Manzano <https://github.com/isym444>
David Culley <6276049+davidculley@users.noreply.github.com> David Culley <6276049+davidculley@users.noreply.github.com>
Rastislav Kish <rastislav.kish@protonmail.com> Rastislav Kish <rastislav.kish@protonmail.com>
Expertium <https://github.com/Expertium> Expertium <https://github.com/Expertium>
Christian Donat <https://github.com/cdonat2>
******************** ********************
The text of the 3 clause BSD license follows: The text of the 3 clause BSD license follows:

View file

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