mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 01:52:55 +08:00
Fix CI issues
This commit is contained in:
parent
8dea191998
commit
8260b61db5
@ -32,9 +32,9 @@ namespace osu.Game.Overlays.Profile.Header.Components
|
||||
|
||||
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)
|
||||
{
|
||||
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()
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user