feat: #IAJDMD restore window size when last closed on startup

record window size in ~MainWindow() to config.ini; in MainWindow::initUI restore window size

Log: restore window size when last closed on startup
This commit is contained in:
zty199
2024-08-13 15:13:47 +08:00
parent 8d8783502c
commit 874ffd5822
2 changed files with 16 additions and 3 deletions

View File

@@ -12,7 +12,6 @@
#include <execinfo.h>
#include <DSysInfo>
#include <DWidgetUtil>
#include <QDate>
#include <QProcessEnvironment>
@@ -181,8 +180,6 @@ int main(int argc, char *argv[])
MainWindow w;
a.setMainWindow(&w); // 设置应用程序主窗口,用于初始化关于对话框
// 让打开时界面显示在正中
Dtk::Widget::moveToCenter(&w);
if (argc > 1)
{