Try to debug new settings UI toggle
This commit is contained in:
parent
4de07c2d7a
commit
25fda866ec
2 changed files with 2 additions and 1 deletions
|
|
@ -43,7 +43,6 @@ static const NSInteger YTLitePlusSection = 788;
|
||||||
static const NSInteger YTLiteSection = 789;
|
static const NSInteger YTLiteSection = 789;
|
||||||
%hook YTSettingsGroupData
|
%hook YTSettingsGroupData
|
||||||
+ (NSMutableArray <NSNumber *> *)tweaks {
|
+ (NSMutableArray <NSNumber *> *)tweaks {
|
||||||
NSLog(@"bhackel: called hooked 'tweaks' method.");
|
|
||||||
NSMutableArray <NSNumber *> *originalTweaks = %orig;
|
NSMutableArray <NSNumber *> *originalTweaks = %orig;
|
||||||
|
|
||||||
static dispatch_once_t onceToken;
|
static dispatch_once_t onceToken;
|
||||||
|
|
|
||||||
|
|
@ -462,6 +462,8 @@ static NSData *cellDividerData = nil;
|
||||||
// New Settings UI - @bhackel
|
// New Settings UI - @bhackel
|
||||||
%hook YTColdConfig
|
%hook YTColdConfig
|
||||||
- (BOOL)mainAppCoreClientEnableCairoSettings {
|
- (BOOL)mainAppCoreClientEnableCairoSettings {
|
||||||
|
NSLog(@"bhackel: mainAppCoreClientEnableCairoSettings");
|
||||||
|
return YES;
|
||||||
return IS_ENABLED(@"newSettingsUI_enabled");
|
return IS_ENABLED(@"newSettingsUI_enabled");
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue