Qt: Save/restore additional window positions

Cheat Manager, Memory Scanner, CPU Debugger.
This commit is contained in:
Stenzek
2024-09-06 20:43:43 +10:00
parent ab1c85790c
commit 929b049bd8
6 changed files with 72 additions and 63 deletions

View File

@ -29,6 +29,8 @@ CheatManagerWindow::CheatManagerWindow() : QWidget()
{
m_ui.setupUi(this);
QtUtils::RestoreWindowGeometry("CheatManagerWindow", this);
connectUi();
updateCheatList();
@ -63,6 +65,7 @@ void CheatManagerWindow::showEvent(QShowEvent* event)
void CheatManagerWindow::closeEvent(QCloseEvent* event)
{
QtUtils::SaveWindowGeometry("CheatManagerWindow", this);
QWidget::closeEvent(event);
emit closed();
}