Skip to content

Commit

Permalink
Add maximize hint for models.py (ankitects#3151)
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Donat committed Jul 27, 2024
1 parent 2c30081 commit bda3b5f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ Ian Samir Yep Manzano <https://github.com/isym444>
David Culley <6276049+davidculley@users.noreply.github.com>
Rastislav Kish <rastislav.kish@protonmail.com>
Expertium <https://github.com/Expertium>

Christian Donat <https://github.com/cdonat2>
********************

The text of the 3 clause BSD license follows:
Expand Down
7 changes: 7 additions & 0 deletions qt/aqt/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ def __init__(
self.models: Sequence[NotetypeNameIdUseCount] = []
self.setupModels()
restoreGeom(self, "models")

self.setWindowFlags(
self.windowFlags()
| Qt.WindowType.WindowMaximizeButtonHint
| Qt.WindowType.WindowMinimizeButtonHint
)

self.show()

# Models
Expand Down

0 comments on commit bda3b5f

Please sign in to comment.