Try to debug new settings UI toggle

This commit is contained in:
Bryce Hackel
2024-07-05 23:05:07 -07:00
parent 4de07c2d7a
commit 25fda866ec
2 changed files with 2 additions and 1 deletions

View File

@@ -43,7 +43,6 @@ static const NSInteger YTLitePlusSection = 788;
static const NSInteger YTLiteSection = 789;
%hook YTSettingsGroupData
+ (NSMutableArray <NSNumber *> *)tweaks {
NSLog(@"bhackel: called hooked 'tweaks' method.");
NSMutableArray <NSNumber *> *originalTweaks = %orig;
static dispatch_once_t onceToken;

View File

@@ -462,6 +462,8 @@ static NSData *cellDividerData = nil;
// New Settings UI - @bhackel
%hook YTColdConfig
- (BOOL)mainAppCoreClientEnableCairoSettings {
NSLog(@"bhackel: mainAppCoreClientEnableCairoSettings");
return YES;
return IS_ENABLED(@"newSettingsUI_enabled");
}
%end