Skip to content

Commit

Permalink
Add default size when never opened before
Browse files Browse the repository at this point in the history
  • Loading branch information
QCanvas committed Jul 25, 2024
1 parent 32e6f48 commit 5aa40b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qcanvas/ui/main_ui/qcanvas_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ def _setup_menu_bar(self) -> None:
def _restore_window_position(self):
if settings.ui.last_geometry is not None:
self.restoreGeometry(settings.ui.last_geometry)
else:
self.resize(1000, 600)

if settings.ui.last_window_state is not None:
self.restoreState(settings.ui.last_window_state)
Expand Down

0 comments on commit 5aa40b2

Please sign in to comment.