1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-18 10:31:41 +08:00

Revert "Store default ruleset value for ability to revert"

This reverts commit cb7c2f713b.
This commit is contained in:
Salman Ahmed
2021-08-23 12:38:24 +03:00
Unverified
parent 79aea1fb78
commit eeeaefbd7d
3 changed files with 3 additions and 2 deletions
@@ -6,6 +6,7 @@ using osu.Framework.Graphics.UserInterface;
using osu.Game.Beatmaps;
using osu.Game.Rulesets;
using System.Linq;
using osu.Framework.Allocation;
namespace osu.Game.Overlays.BeatmapSet
{
+1 -1
View File
@@ -26,7 +26,7 @@ namespace osu.Game.Overlays
var preferredRuleset = store.GetRuleset(api.LocalUser.Value.PlayMode);
if (preferredRuleset != null)
Current.Value = Current.Default = preferredRuleset;
Current.Value = preferredRuleset;
}
}
+1 -1
View File
@@ -33,7 +33,7 @@ namespace osu.Game.Rulesets
// That can become an issue with overlays that require access to the initial ruleset value
// before the ruleset selectors reached a LoadComplete state.
// (e.g. displaying RankingsOverlay for the first time).
Current.Value = Current.Default = Items.First();
Current.Value = Items.First();
}
}
}