mirror of
https://github.com/ppy/osu.git
synced 2025-03-11 01:07:23 +08:00
Skip window title update for dummy beatmap
This commit is contained in:
parent
b5696f97a0
commit
2abe75629e
@ -829,6 +829,10 @@ namespace osu.Game
|
|||||||
beatmap.OldValue?.CancelAsyncLoad();
|
beatmap.OldValue?.CancelAsyncLoad();
|
||||||
beatmap.NewValue?.BeginAsyncLoad();
|
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)}";
|
Host.Window.Title = $"{Name} - {beatmap.NewValue.BeatmapInfo.GetDisplayTitleRomanisable(true, false)}";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user