Qt: Raise settings window if already open

This commit is contained in:
Stenzek 2023-11-05 20:35:42 +10:00
parent ea51d2a213
commit 738ede0c39
No known key found for this signature in database

View file

@ -2300,6 +2300,10 @@ void MainWindow::doSettings(const char* category /* = nullptr */)
dlg->setModal(false);
dlg->show();
}
else
{
dlg->raise();
}
if (category)
dlg->setCategory(category);
@ -2322,6 +2326,10 @@ void MainWindow::doControllerSettings(
dlg->setModal(false);
dlg->show();
}
else
{
dlg->raise();
}
if (category != ControllerSettingsDialog::Category::Count)
dlg->setCategory(category);