From 930087ea92291bba1bc55f606aa5e1efcb622a75 Mon Sep 17 00:00:00 2001 From: isanae <14251494+isanae@users.noreply.github.com> Date: Mon, 9 Dec 2019 13:25:04 -0500 Subject: set default window size to 1300x800 --- src/mainwindow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index b5900c6c..ea202064 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2201,7 +2201,10 @@ void MainWindow::readSettings() { const auto& s = m_OrganizerCore.settings(); - s.geometry().restoreGeometry(this); + if (!s.geometry().restoreGeometry(this)) { + resize(1300, 800); + } + s.geometry().restoreState(this); s.geometry().restoreDocks(this); s.geometry().restoreToolbars(this); -- cgit v1.3.1