提交 363d8b89 编写于 作者: J jp9000

UI: Store proper window pos/size

Only store the last restored (non-maximized and non-minimized) window
position and size on exit.
上级 f3104d92
......@@ -698,14 +698,17 @@ OBSBasic::~OBSBasic()
config_set_int(App()->GlobalConfig(), "General", "LastVersion",
LIBOBS_API_VER);
QRect lastGeom = normalGeometry();
config_set_int(App()->GlobalConfig(), "MainWindow", "cx",
this->width());
lastGeom.width());
config_set_int(App()->GlobalConfig(), "MainWindow", "cy",
this->height());
lastGeom.height());
config_set_int(App()->GlobalConfig(), "MainWindow", "posx",
this->pos().x());
lastGeom.x());
config_set_int(App()->GlobalConfig(), "MainWindow", "posy",
this->pos().y());
lastGeom.y());
config_save(App()->GlobalConfig());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册