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.
This commit is contained in:
1 parent
c63acd54a1
commit
173beb7392
1 file changed
+6
@@ -46,6 +46,12 @@ namespace Cthangover.BaseMenu
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>Cancels menu-owned compilation when the title screen leaves the tree.</summary>
|
||||||
|
public override void _ExitTree()
|
||||||
|
{
|
||||||
|
GameSession.StopWarmUp();
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Assembles the runtime UI: theme, hidden settings and save/load panels,
|
/// Assembles the runtime UI: theme, hidden settings and save/load panels,
|
||||||
/// telegram link wiring, scene manager initialization and registry
|
/// telegram link wiring, scene manager initialization and registry
|
||||||
|
|||||||
Reference in new issue
Block a user