From 48ff76d495949219474254b62388f1b83ddbf5c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Tue, 4 Oct 2016 22:57:04 +0200 Subject: [PATCH] DolphinWX: Update GUI properly after unpausing If an unpause was forced by the graceful shutdown code, the UI was previously not updated. --- Source/Core/DolphinWX/FrameTools.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinWX/FrameTools.cpp b/Source/Core/DolphinWX/FrameTools.cpp index ef08e6b721..7da392e2b4 100644 --- a/Source/Core/DolphinWX/FrameTools.cpp +++ b/Source/Core/DolphinWX/FrameTools.cpp @@ -1344,7 +1344,9 @@ void CFrame::DoStop() if (SConfig::GetInstance().bWii && !m_tried_graceful_shutdown) { Core::DisplayMessage("Shutting down", 30000); - Core::SetState(Core::CORE_RUN); + // Unpause because gracefully shutting down needs the game to actually request a shutdown + if (Core::GetState() == Core::CORE_PAUSE) + DoPause(); ProcessorInterface::PowerButton_Tap(); m_confirmStop = false; m_tried_graceful_shutdown = true;