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