From 4eb6a2016b76410a763acb66569f51ed2937f773 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 27 Nov 2025 14:21:51 -0800
Subject: [PATCH] Hide the continue panel when the window is closed
---
game/continue.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/game/continue.cpp b/game/continue.cpp
index 414987ad..991367d1 100644
--- a/game/continue.cpp
+++ b/game/continue.cpp
@@ -69,5 +69,8 @@ void ContinuePanelDelegate::OnTick()
bool ContinuePanelDelegate::HandleEvent(const SDL_Event &event)
{
- return false;
+ if (event.type == SDL_EVENT_QUIT) {
+ ui->HidePanel(m_panel);
+ }
+ return false;
}