1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-10 22:17:20 +08:00

Skip updating window title in headless mode

This commit is contained in:
Zihad 2025-03-04 20:36:53 +06:00
parent 14b5c0bf10
commit 8ce6003a3e
No known key found for this signature in database

View File

@ -829,6 +829,9 @@ namespace osu.Game
beatmap.OldValue?.CancelAsyncLoad();
beatmap.NewValue?.BeginAsyncLoad();
if (Host.Window == null)
return;
// prevent weird window title saying please load a beatmap
string newTitle = Name;
if (beatmap.NewValue != null && beatmap.NewValue is not DummyWorkingBeatmap)