mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 07:32:55 +08:00
Store default ruleset value for ability to revert
This commit is contained in:
parent
1d89d757af
commit
cb7c2f713b
@ -6,7 +6,6 @@ using osu.Framework.Graphics.UserInterface;
|
|||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
using osu.Game.Rulesets;
|
using osu.Game.Rulesets;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using osu.Framework.Allocation;
|
|
||||||
|
|
||||||
namespace osu.Game.Overlays.BeatmapSet
|
namespace osu.Game.Overlays.BeatmapSet
|
||||||
{
|
{
|
||||||
|
@ -26,7 +26,7 @@ namespace osu.Game.Overlays
|
|||||||
var preferredRuleset = store.GetRuleset(api.LocalUser.Value.PlayMode);
|
var preferredRuleset = store.GetRuleset(api.LocalUser.Value.PlayMode);
|
||||||
|
|
||||||
if (preferredRuleset != null)
|
if (preferredRuleset != null)
|
||||||
Current.Value = preferredRuleset;
|
Current.Value = Current.Default = preferredRuleset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ namespace osu.Game.Rulesets
|
|||||||
// That can become an issue with overlays that require access to the initial ruleset value
|
// That can become an issue with overlays that require access to the initial ruleset value
|
||||||
// before the ruleset selectors reached a LoadComplete state.
|
// before the ruleset selectors reached a LoadComplete state.
|
||||||
// (e.g. displaying RankingsOverlay for the first time).
|
// (e.g. displaying RankingsOverlay for the first time).
|
||||||
Current.Value = Items.First();
|
Current.Value = Current.Default = Items.First();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user