mirror of https://github.com/ppy/osu
Fix hiding beatmaps not refreshing correctly
This commit is contained in:
parent
89cf794f98
commit
8c1d581fb3
|
@ -34,12 +34,10 @@ public bool Hide(BeatmapInfo beatmap)
|
|||
Refresh(ref beatmap, Beatmaps);
|
||||
|
||||
if (beatmap.Hidden) return false;
|
||||
|
||||
beatmap.Hidden = true;
|
||||
|
||||
BeatmapHidden?.Invoke(beatmap);
|
||||
}
|
||||
|
||||
BeatmapHidden?.Invoke(beatmap);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -55,7 +53,6 @@ public bool Restore(BeatmapInfo beatmap)
|
|||
Refresh(ref beatmap, Beatmaps);
|
||||
|
||||
if (!beatmap.Hidden) return false;
|
||||
|
||||
beatmap.Hidden = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue