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

Skip window title update for dummy beatmap

This commit is contained in:
Zihad 2025-03-04 18:28:03 +06:00
parent b5696f97a0
commit 2abe75629e
No known key found for this signature in database

View File

@ -829,6 +829,10 @@ namespace osu.Game
beatmap.OldValue?.CancelAsyncLoad();
beatmap.NewValue?.BeginAsyncLoad();
// prevent weird window title saying please load a beatmap
if (beatmap.NewValue is null or DummyWorkingBeatmap)
Host.Window.Title = Name;
else
Host.Window.Title = $"{Name} - {beatmap.NewValue.BeatmapInfo.GetDisplayTitleRomanisable(true, false)}";
}