Skip to content

Commit

Permalink
GUI: Allow to maximize settings dialogs that are already resizable (n…
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienCochuyt committed Sep 11, 2019
1 parent e02b548 commit a5c8cbc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/gui/settingsDialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ def __init__(
"""
if gui._isDebug():
startTime = time.time()
windowStyle = wx.DEFAULT_DIALOG_STYLE | (wx.RESIZE_BORDER if resizeable else 0)
windowStyle = wx.DEFAULT_DIALOG_STYLE
if resizeable:
windowStyle |= wx.RESIZE_BORDER | wx.MAXIMIZE_BOX
wx.Dialog.__init__(self, parent, title=self.title, style=windowStyle)
DpiScalingHelperMixin.__init__(self, self.GetHandle())

Expand Down

0 comments on commit a5c8cbc

Please sign in to comment.