mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 20:13:22 +08:00
Flip viaConfig
conditional branch
This commit is contained in:
parent
8534dd3463
commit
b815f685fc
@ -375,10 +375,10 @@ namespace osu.Game.Tests.Visual.Online
|
||||
|
||||
private void setCardSize(BeatmapCardSize cardSize, bool viaConfig) => AddStep($"set card size to {cardSize}", () =>
|
||||
{
|
||||
if (!viaConfig)
|
||||
overlay.ChildrenOfType<BeatmapListingCardSizeTabControl>().Single().Current.Value = cardSize;
|
||||
else
|
||||
if (viaConfig)
|
||||
localConfig.SetValue(OsuSetting.BeatmapListingCardSize, cardSize);
|
||||
else
|
||||
overlay.ChildrenOfType<BeatmapListingCardSizeTabControl>().Single().Current.Value = cardSize;
|
||||
});
|
||||
|
||||
private void assertAllCardsOfType<T>(int expectedCount)
|
||||
|
Loading…
Reference in New Issue
Block a user