From d0b0a24819fc3bb56c5f94725cc4a1159bd1319e Mon Sep 17 00:00:00 2001 From: Dan <38832025+dayanch96@users.noreply.github.com> Date: Sun, 10 Mar 2024 06:37:06 +0300 Subject: [PATCH] Checking for matching keys instead of boolean values --- Settings.x | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Settings.x b/Settings.x index 288def7..3534ada 100644 --- a/Settings.x +++ b/Settings.x @@ -85,7 +85,8 @@ static NSString *GetCacheSize() { else { ytlSetBool(enabled, key); - if (ytlBool(@"removeLabels") || ytlBool(@"reExplore") || ytlBool(@"addExplore") || ytlBool(@"removeShorts") || ytlBool(@"removeSubscriptions") || ytlBool(@"removeUploads") || ytlBool(@"removeLibrary")) { + NSArray *keys = @[@"removeLabels", @"removeIndicators", @"reExplore", @"addExplore", @"removeShorts", @"removeSubscriptions", @"removeUploads", @"removeLibrary"]; + if ([keys containsObject:key]) { [[[%c(YTHeaderContentComboViewController) alloc] init] refreshPivotBar]; } }