mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 15:19:09 +00:00
Qt: Fix render widget not being on top when using -n / -e
This commit is contained in:
parent
99dff10d43
commit
fa77e09239
3 changed files with 16 additions and 2 deletions
|
@ -110,7 +110,7 @@ MainWindow::MainWindow(std::unique_ptr<BootParameters> boot_parameters) : QMainW
|
|||
NetPlayInit();
|
||||
|
||||
if (boot_parameters)
|
||||
StartGame(std::move(boot_parameters));
|
||||
m_pending_boot = std::move(boot_parameters);
|
||||
|
||||
QSettings& settings = Settings::GetQSettings();
|
||||
|
||||
|
@ -1351,3 +1351,15 @@ void MainWindow::OnUpdateProgressDialog(QString title, int progress, int total)
|
|||
m_progress_dialog = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::Show()
|
||||
{
|
||||
QWidget::show();
|
||||
|
||||
// If the booting of a game was requested on start up, do that now
|
||||
if (m_pending_boot != nullptr)
|
||||
{
|
||||
StartGame(std::move(m_pending_boot));
|
||||
m_pending_boot.reset();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue