Removed deprecated workaround
This commit is contained in:
+1
-11
@@ -78,14 +78,10 @@ static BOOL oldDarkTheme() {
|
|||||||
%end
|
%end
|
||||||
%end
|
%end
|
||||||
|
|
||||||
// Workaround for qnblackcat/uYouPlus#617
|
|
||||||
static BOOL didFinishLaunching;
|
|
||||||
|
|
||||||
%hook YTAppDelegate
|
%hook YTAppDelegate
|
||||||
- (BOOL)application:(UIApplication *)application
|
- (BOOL)application:(UIApplication *)application
|
||||||
didFinishLaunchingWithOptions:(NSDictionary<UIApplicationLaunchOptionsKey, id> *)launchOptions {
|
didFinishLaunchingWithOptions:(NSDictionary<UIApplicationLaunchOptionsKey, id> *)launchOptions {
|
||||||
didFinishLaunching = %orig;
|
BOOL didFinishLaunching = %orig;
|
||||||
self.downloadsVC = [self.downloadsVC init];
|
|
||||||
|
|
||||||
if (IsEnabled(@"flex_enabled")) {
|
if (IsEnabled(@"flex_enabled")) {
|
||||||
[[%c(FLEXManager) performSelector:@selector(sharedManager)] performSelector:@selector(showExplorer)];
|
[[%c(FLEXManager) performSelector:@selector(sharedManager)] performSelector:@selector(showExplorer)];
|
||||||
@@ -101,12 +97,6 @@ static BOOL didFinishLaunching;
|
|||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook DownloadsPagerVC
|
|
||||||
- (instancetype)init {
|
|
||||||
return didFinishLaunching ? %orig : self;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
|
|
||||||
# pragma mark - YouTube's patches
|
# pragma mark - YouTube's patches
|
||||||
// Workaround for MiRO92/uYou-for-YouTube#12, qnblackcat/uYouPlus#263
|
// Workaround for MiRO92/uYou-for-YouTube#12, qnblackcat/uYouPlus#263
|
||||||
%hook YTDataUtils
|
%hook YTDataUtils
|
||||||
|
|||||||
Reference in New Issue
Block a user