From b7da118f96c84449f6b813672840a3f186472c98 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 13 Jul 2024 20:47:03 +1000 Subject: [PATCH] Qt: Don't boot system twice on rapid clicking --- src/duckstation-qt/qthost.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/duckstation-qt/qthost.cpp b/src/duckstation-qt/qthost.cpp index 78b5e1bb8..b00449c60 100644 --- a/src/duckstation-qt/qthost.cpp +++ b/src/duckstation-qt/qthost.cpp @@ -816,6 +816,10 @@ void EmuThread::bootSystem(std::shared_ptr params) return; } + // Just in case of rapid clicking games before it gets the chance to start. + if (System::IsValidOrInitializing()) + return; + setInitialState(params->override_fullscreen); Error error;