Checking for matching keys instead of boolean values
This commit is contained in:
+2
-1
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user