Qt: Raise settings window if already open

pull/3035/head
Stenzek 3 years ago
parent ea51d2a213
commit 738ede0c39
No known key found for this signature in database

@ -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);

Loading…
Cancel
Save