Qt: Fix starting after theme change

This commit is contained in:
Connor McLaughlin 2022-05-24 18:04:26 +10:00 committed by refractionpcsx2
parent ac9d406862
commit f2713462cc
4 changed files with 3 additions and 2 deletions

View File

@ -70,7 +70,6 @@ void EmuThread::start()
g_emu_thread->QThread::start();
g_emu_thread->m_started_semaphore.acquire();
g_emu_thread->moveToThread(g_emu_thread);
g_main_window->connectVMThreadSignals(g_emu_thread);
}
void EmuThread::stop()

View File

@ -203,8 +203,8 @@ int main(int argc, char* argv[])
return EXIT_FAILURE;
}
// actually show the window, the emuthread might still be starting up at this point
main_window->initialize();
EmuThread::start();
// skip scanning the game list when running in batch mode
if (!QtHost::InBatchMode())

View File

@ -88,6 +88,7 @@ void MainWindow::initialize()
setupAdditionalUi();
setStyleFromSettings();
connectSignals();
connectVMThreadSignals(g_emu_thread);
restoreStateFromConfig();
switchToGameListView();

View File

@ -92,6 +92,7 @@ bool QtHost::Initialize()
}
HookSignals();
EmuThread::start();
return true;
}