mirror of https://github.com/PCSX2/pcsx2.git
Qt:Mac: Make sure settings windows are raised when requested
This commit is contained in:
parent
807db91140
commit
433612cde0
|
@ -2134,7 +2134,11 @@ SettingsDialog* MainWindow::getSettingsDialog()
|
|||
connect(m_settings_dialog->getInterfaceSettingsWidget(), &InterfaceSettingsWidget::languageChanged, this, [this]() {
|
||||
// reopen settings dialog after it applies
|
||||
updateLanguage();
|
||||
g_main_window->doSettings("Interface");
|
||||
// If you doSettings now, on macOS, the window will somehow end up underneath the main window that was created above
|
||||
// Delay it slightly...
|
||||
QtHost::RunOnUIThread([]{
|
||||
g_main_window->doSettings("Interface");
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -2144,7 +2148,11 @@ SettingsDialog* MainWindow::getSettingsDialog()
|
|||
void MainWindow::doSettings(const char* category /* = nullptr */)
|
||||
{
|
||||
SettingsDialog* dlg = getSettingsDialog();
|
||||
if (!dlg->isVisible())
|
||||
if (dlg->isVisible())
|
||||
{
|
||||
dlg->raise();
|
||||
}
|
||||
else
|
||||
{
|
||||
dlg->setModal(false);
|
||||
dlg->show();
|
||||
|
|
Loading…
Reference in New Issue