prevent app crash for jailbroken devices
same for jailed devices if ytabconfig not injected
This commit is contained in:
@@ -32,6 +32,12 @@ extern NSBundle *uYouPlusBundle();
|
||||
}
|
||||
%end
|
||||
|
||||
%hook YTSettingsSectionController
|
||||
- (void)setSelectedItem:(NSUInteger)selectedItem {
|
||||
if (selectedItem != NSNotFound) %orig;
|
||||
}
|
||||
%end
|
||||
|
||||
%hook YTSettingsSectionItemManager
|
||||
%new(v@:@)
|
||||
- (void)updateTweakSectionWithEntry:(id)entry {
|
||||
|
||||
Reference in New Issue
Block a user