aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-01-23 08:49:40 +0000
committersaturneric <[email protected]>2024-01-23 08:49:40 +0000
commit73acc04811e8fbc7e967527a80340350f6694662 (patch)
treeaa836b9d4e1d7fc79a08d515d252afff4a293fbe
parentfix: mimalloc is not yet stable on windows (diff)
downloadGpgFrontend-73acc04811e8fbc7e967527a80340350f6694662.tar.gz
GpgFrontend-73acc04811e8fbc7e967527a80340350f6694662.zip
fix: main windows is too small
-rw-r--r--src/ui/main_window/GeneralMainWindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/main_window/GeneralMainWindow.cpp b/src/ui/main_window/GeneralMainWindow.cpp
index 2eb9f2a4..e3577199 100644
--- a/src/ui/main_window/GeneralMainWindow.cpp
+++ b/src/ui/main_window/GeneralMainWindow.cpp
@@ -102,6 +102,9 @@ void GpgFrontend::UI::GeneralMainWindow::slot_restore_settings() noexcept {
}
}
+ if (size_.width() < 600) size_.setWidth(600);
+ if (size_.height() < 400) size_.setHeight(400);
+
this->move(pos_);
this->resize(size_);
}