Fix FLEX (YTLitePlus.xm)

This commit is contained in:
aricloverGitHub (INACTIVE) 2024-11-09 21:26:55 -06:00 committed by GitHub
parent f855d02462
commit 2600ee6ff6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,17 +40,15 @@ static NSString *accessGroupID() {
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary<UIApplicationLaunchOptionsKey, id> *)launchOptions {
BOOL didFinishLaunching = %orig;
if (IsEnabled(@"flex_enabled")) {
[[FLEXManager sharedManager] showExplorer];
if (IsEnabled(@"flex_enabled")) {
[[%c(FLEXManager) performSelector:@selector(sharedManager)] performSelector:@selector(showExplorer)];
}
return didFinishLaunching;
}
- (void)appWillResignActive:(id)arg1 {
%orig;
if (IsEnabled(@"flex_enabled")) {
[[FLEXManager sharedManager] showExplorer];
if (IsEnabled(@"flex_enabled")) {
[[%c(FLEXManager) performSelector:@selector(sharedManager)] performSelector:@selector(showExplorer)];
}
}
%end