option to show FLEX
This commit is contained in:
+12
@@ -5,6 +5,7 @@
|
||||
#import <sys/utsname.h>
|
||||
#import <substrate.h>
|
||||
#import "Header.h"
|
||||
#import "Tweaks/FLEX/FLEX.h"
|
||||
#import "Tweaks/YouTubeHeader/YTVideoQualitySwitchOriginalController.h"
|
||||
#import "Tweaks/YouTubeHeader/YTPlayerViewController.h"
|
||||
#import "Tweaks/YouTubeHeader/YTWatchController.h"
|
||||
@@ -193,8 +194,19 @@ static BOOL didFinishLaunching;
|
||||
didFinishLaunchingWithOptions:(NSDictionary<UIApplicationLaunchOptionsKey, id> *)launchOptions {
|
||||
didFinishLaunching = %orig;
|
||||
self.downloadsVC = [self.downloadsVC init];
|
||||
|
||||
if (IsEnabled(@"flex_enabled")) {
|
||||
[[FLEXManager sharedManager] showExplorer];
|
||||
}
|
||||
|
||||
return didFinishLaunching;
|
||||
}
|
||||
- (void)appWillResignActive:(id)arg1 {
|
||||
%orig;
|
||||
if (IsEnabled(@"flex_enabled")) {
|
||||
[[FLEXManager sharedManager] showExplorer];
|
||||
}
|
||||
}
|
||||
%end
|
||||
|
||||
%hook DownloadsPagerVC
|
||||
|
||||
Reference in New Issue
Block a user