Checking for matching keys instead of boolean values

This commit is contained in:
Dan
2024-03-10 06:37:06 +03:00
committed by GitHub
parent e5894e7291
commit d0b0a24819
+2 -1
View File
@@ -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];
}
}