1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-21 19:02:55 +08:00

Fix CI issues

This commit is contained in:
EVAST9919 2019-06-04 19:02:09 +03:00
parent 8dea191998
commit 8260b61db5

View File

@ -32,9 +32,9 @@ namespace osu.Game.Overlays.Profile.Header.Components
accentColour = value; accentColour = value;
foreach (GamemodeTabItem tabItem in TabContainer) foreach (TabItem<RulesetInfo> tabItem in TabContainer)
{ {
tabItem.AccentColour = value; ((GamemodeTabItem)tabItem).AccentColour = value;
} }
} }
} }
@ -57,19 +57,19 @@ namespace osu.Game.Overlays.Profile.Header.Components
public void SetDefaultGamemode(string gamemode) public void SetDefaultGamemode(string gamemode)
{ {
foreach (GamemodeTabItem i in TabContainer) foreach (TabItem<RulesetInfo> tabItem in TabContainer)
{ {
i.IsDefault = i.Value.ShortName == gamemode; ((GamemodeTabItem)tabItem).IsDefault = ((GamemodeTabItem)tabItem).Value.ShortName == gamemode;
} }
} }
public void SelectDefaultGamemode() public void SelectDefaultGamemode()
{ {
foreach (GamemodeTabItem i in TabContainer) foreach (TabItem<RulesetInfo> tabItem in TabContainer)
{ {
if (i.IsDefault) if (((GamemodeTabItem)tabItem).IsDefault)
{ {
Current.Value = i.Value; Current.Value = ((GamemodeTabItem)tabItem).Value;
return; return;
} }
} }