mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-26 21:05:43 -04: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…
x
Reference in New Issue
Block a user