From 173beb73921f56fab1b5fd173665a5ce7c4e121f Mon Sep 17 00:00:00 2001 From: iisaev Date: Fri, 13 Nov 2026 17:48:40 +0100 Subject: [PATCH] fix: join menu warmup before gameplay and shutdown Track and cancel asynchronous menu preparation so scene changes and shutdown do not leave background owners alive. --- src/MainMenu.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/MainMenu.cs b/src/MainMenu.cs index 826b1cf..08366af 100644 --- a/src/MainMenu.cs +++ b/src/MainMenu.cs @@ -46,6 +46,12 @@ namespace Cthangover.BaseMenu + /// Cancels menu-owned compilation when the title screen leaves the tree. + public override void _ExitTree() + { + GameSession.StopWarmUp(); + } + /// /// Assembles the runtime UI: theme, hidden settings and save/load panels, /// telegram link wiring, scene manager initialization and registry