prevent app crash for jailbroken devices

same for jailed devices if ytabconfig not injected
This commit is contained in:
dayanch96 2023-02-04 22:10:42 +03:00 committed by GitHub
parent dcbfeba8b7
commit 97ffc204b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {