diff options
author | saturneric <[email protected]> | 2024-01-23 08:49:40 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-01-23 08:49:40 +0000 |
commit | 73acc04811e8fbc7e967527a80340350f6694662 (patch) | |
tree | aa836b9d4e1d7fc79a08d515d252afff4a293fbe | |
parent | fix: mimalloc is not yet stable on windows (diff) | |
download | GpgFrontend-73acc04811e8fbc7e967527a80340350f6694662.tar.gz GpgFrontend-73acc04811e8fbc7e967527a80340350f6694662.zip |
fix: main windows is too small
-rw-r--r-- | src/ui/main_window/GeneralMainWindow.cpp | 3 |
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_); } |