Skip to content

Commit

Permalink
Checking for matching keys instead of boolean values
Browse files Browse the repository at this point in the history
  • Loading branch information
dayanch96 authored Mar 10, 2024
1 parent e5894e7 commit d0b0a24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Settings.x
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
}
Expand Down

0 comments on commit d0b0a24

Please sign in to comment.