Skip to content

Commit

Permalink
wxGUI: fix setting of user defined window position and size for singl…
Browse files Browse the repository at this point in the history
…e window mode (#2619)
  • Loading branch information
tmszi authored Nov 3, 2022
1 parent daaf4cb commit f203376
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gui/wxpython/main_window/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ def show_menu_errors(messages):
except Exception:
pass
self.Layout()
self.Fit()
if w <= globalvar.GM_WINDOW_SIZE[0] or h <= globalvar.GM_WINDOW_SIZE[1]:
self.Fit()
else:
self.Layout()
self.Fit()
Expand Down

0 comments on commit f203376

Please sign in to comment.