aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/main_window/GeneralMainWindow.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-11-26 11:19:19 +0000
committerSaturneric <[email protected]>2022-11-26 11:19:19 +0000
commitcb299a2b9c18bf80879045f8e99489d7146d9eaf (patch)
tree87bf2161c1a2b9e9a97eb7ce6ee0cb63d6ff9ef2 /src/ui/main_window/GeneralMainWindow.cpp
parentfeat(doc): update contract info (diff)
downloadGpgFrontend-cb299a2b9c18bf80879045f8e99489d7146d9eaf.tar.gz
GpgFrontend-cb299a2b9c18bf80879045f8e99489d7146d9eaf.zip
fix: record the actural size
1. record the actural size of dialogs and main windows when they are closing
Diffstat (limited to '')
-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 73d9fcc3..fb42d71a 100644
--- a/src/ui/main_window/GeneralMainWindow.cpp
+++ b/src/ui/main_window/GeneralMainWindow.cpp
@@ -146,6 +146,9 @@ void GpgFrontend::UI::GeneralMainWindow::slot_save_settings() noexcept {
general_windows_state["window_pos"]["x"] = pos().x();
general_windows_state["window_pos"]["y"] = pos().y();
+ // update size of current dialog
+ size_ = this->size();
+
general_windows_state["window_size"]["width"] = size_.width();
general_windows_state["window_size"]["height"] = size_.height();
general_windows_state["window_save"] = true;