1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-07 06:23:39 +08:00

Update window title in input thread

This commit is contained in:
Zihad
2025-03-04 19:56:48 +06:00
Unverified
parent 2abe75629e
commit 14b5c0bf10
+5 -4
View File
@@ -830,10 +830,11 @@ namespace osu.Game
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)}";
string newTitle = Name;
if (beatmap.NewValue != null && beatmap.NewValue is not DummyWorkingBeatmap)
newTitle = $"{Name} - {beatmap.NewValue.BeatmapInfo.GetDisplayTitleRomanisable(true, false)}";
Host.InputThread.Scheduler.AddOnce(s => Host.Window.Title = s, newTitle);
}
private void modsChanged(ValueChangedEvent<IReadOnlyList<Mod>> mods)