mirror of
https://github.com/tnodir/fort
synced 2024-11-15 08:35:08 +00:00
UI: Options: Fix window's position/size saving
This commit is contained in:
parent
183af6a8cc
commit
f658b5161f
@ -52,20 +52,24 @@ void OptionsWindow::cancelChanges()
|
|||||||
|
|
||||||
void OptionsWindow::saveWindowState()
|
void OptionsWindow::saveWindowState()
|
||||||
{
|
{
|
||||||
iniUser()->setOptWindowGeometry(m_stateWatcher->geometry());
|
IniUser *iniUser = confManager()->iniUser();
|
||||||
iniUser()->setOptWindowMaximized(m_stateWatcher->maximized());
|
|
||||||
|
|
||||||
emit ctrl()->afterSaveWindowState(iniUser());
|
iniUser->setOptWindowGeometry(m_stateWatcher->geometry());
|
||||||
|
iniUser->setOptWindowMaximized(m_stateWatcher->maximized());
|
||||||
|
|
||||||
|
emit ctrl()->afterSaveWindowState(iniUser);
|
||||||
|
|
||||||
confManager()->saveIniUser();
|
confManager()->saveIniUser();
|
||||||
}
|
}
|
||||||
|
|
||||||
void OptionsWindow::restoreWindowState()
|
void OptionsWindow::restoreWindowState()
|
||||||
{
|
{
|
||||||
m_stateWatcher->restore(this, QSize(1024, 768), iniUser()->optWindowGeometry(),
|
IniUser *iniUser = confManager()->iniUser();
|
||||||
iniUser()->optWindowMaximized());
|
|
||||||
|
|
||||||
emit ctrl()->afterRestoreWindowState(iniUser());
|
m_stateWatcher->restore(
|
||||||
|
this, QSize(1024, 768), iniUser->optWindowGeometry(), iniUser->optWindowMaximized());
|
||||||
|
|
||||||
|
emit ctrl()->afterRestoreWindowState(iniUser);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OptionsWindow::setupController()
|
void OptionsWindow::setupController()
|
||||||
|
Loading…
Reference in New Issue
Block a user