From 265927b3900d886e2085d05bfad7cd4157be87d2 Mon Sep 17 00:00:00 2001 From: Thatchapon Unprasert Date: Sat, 6 May 2023 09:46:39 +0700 Subject: [PATCH] Removed deprecated workaround --- uYouPlus.xm | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/uYouPlus.xm b/uYouPlus.xm index 630d2a7..1ebc40e 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -78,14 +78,10 @@ static BOOL oldDarkTheme() { %end %end -// Workaround for qnblackcat/uYouPlus#617 -static BOOL didFinishLaunching; - %hook YTAppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - didFinishLaunching = %orig; - self.downloadsVC = [self.downloadsVC init]; + BOOL didFinishLaunching = %orig; if (IsEnabled(@"flex_enabled")) { [[%c(FLEXManager) performSelector:@selector(sharedManager)] performSelector:@selector(showExplorer)]; @@ -101,12 +97,6 @@ static BOOL didFinishLaunching; } %end -%hook DownloadsPagerVC -- (instancetype)init { - return didFinishLaunching ? %orig : self; -} -%end - # pragma mark - YouTube's patches // Workaround for MiRO92/uYou-for-YouTube#12, qnblackcat/uYouPlus#263 %hook YTDataUtils