diff options
author | saturneric <[email protected]> | 2024-05-03 15:18:03 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-05-03 15:18:03 +0000 |
commit | 15901a9e5eb47f64390d70d7bca26f2b7ffd5646 (patch) | |
tree | 23638209a333ec64c89cc2e53fe09eb1bcfa89ee | |
parent | feat: add option to close all gnupg daemon at close (diff) | |
download | GpgFrontend-15901a9e5eb47f64390d70d7bca26f2b7ffd5646.tar.gz GpgFrontend-15901a9e5eb47f64390d70d7bca26f2b7ffd5646.zip |
fix: set min size of key mnt and another main window
-rw-r--r-- | src/ui/main_window/GeneralMainWindow.cpp | 3 | ||||
-rw-r--r-- | src/ui/main_window/KeyMgmt.cpp | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/ui/main_window/GeneralMainWindow.cpp b/src/ui/main_window/GeneralMainWindow.cpp index 8319b741..3d662332 100644 --- a/src/ui/main_window/GeneralMainWindow.cpp +++ b/src/ui/main_window/GeneralMainWindow.cpp @@ -65,8 +65,7 @@ void GpgFrontend::UI::GeneralMainWindow::slot_restore_settings() noexcept { QByteArray::fromBase64(window_state.window_state_data.toUtf8())); } - if (size_.width() < 640) size_.setWidth(640); - if (size_.height() < 480) size_.setHeight(480); + this->setMinimumSize(640, 480); // restore window size & location if (window_state.window_save) { diff --git a/src/ui/main_window/KeyMgmt.cpp b/src/ui/main_window/KeyMgmt.cpp index 96df89d1..af9a6b31 100644 --- a/src/ui/main_window/KeyMgmt.cpp +++ b/src/ui/main_window/KeyMgmt.cpp @@ -121,7 +121,7 @@ KeyMgmt::KeyMgmt(QWidget* parent) this->statusBar()->show(); setWindowTitle(tr("KeyPair Management")); - setMinimumSize(QSize(600, 400)); + setMinimumSize(QSize(640, 480)); key_list_->AddMenuAction(generate_subkey_act_); key_list_->AddMenuAction(delete_selected_keys_act_); |