mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 22:05:38 +00:00
Qt: Raise settings window if already open
This commit is contained in:
parent
ea51d2a213
commit
738ede0c39
|
@ -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…
Reference in a new issue