mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 23:55:40 +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->setModal(false);
|
||||||
dlg->show();
|
dlg->show();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
dlg->raise();
|
||||||
|
}
|
||||||
|
|
||||||
if (category)
|
if (category)
|
||||||
dlg->setCategory(category);
|
dlg->setCategory(category);
|
||||||
|
@ -2322,6 +2326,10 @@ void MainWindow::doControllerSettings(
|
||||||
dlg->setModal(false);
|
dlg->setModal(false);
|
||||||
dlg->show();
|
dlg->show();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
dlg->raise();
|
||||||
|
}
|
||||||
|
|
||||||
if (category != ControllerSettingsDialog::Category::Count)
|
if (category != ControllerSettingsDialog::Category::Count)
|
||||||
dlg->setCategory(category);
|
dlg->setCategory(category);
|
||||||
|
|
Loading…
Reference in a new issue