1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 01:52:55 +08:00

Fix some failing tests due to realm beatmaps overwriting test beatmaps

This commit is contained in:
Dean Herbert 2022-01-20 00:14:00 +09:00
parent 9435464eb3
commit 6c46fd6931

View File

@ -182,9 +182,10 @@ namespace osu.Game.Screens.Select
RightClickScrollingEnabled.ValueChanged += enabled => Scroll.RightMouseScrollbar = enabled.NewValue;
RightClickScrollingEnabled.TriggerChange();
using (var realm = realmFactory.CreateContext())
if (!loadedTestBeatmaps)
{
loadBeatmapSets(getBeatmapSets(realm));
using (var realm = realmFactory.CreateContext())
loadBeatmapSets(getBeatmapSets(realm));
}
}