Flip `viaConfig` conditional branch

This commit is contained in:
Salman Ahmed 2022-04-02 19:28:33 +03:00
parent 8534dd3463
commit b815f685fc
1 changed files with 3 additions and 3 deletions

View File

@ -375,10 +375,10 @@ private void noPlaceholderShown()
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)