Skip to content

Commit

Permalink
Removed deprecated workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
PoomSmart committed May 6, 2023
1 parent 4fc4276 commit 265927b
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions uYouPlus.xm
Original file line number Diff line number Diff line change
Expand Up @@ -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<UIApplicationLaunchOptionsKey, id> *)launchOptions {
didFinishLaunching = %orig;
self.downloadsVC = [self.downloadsVC init];
BOOL didFinishLaunching = %orig;

if (IsEnabled(@"flex_enabled")) {
[[%c(FLEXManager) performSelector:@selector(sharedManager)] performSelector:@selector(showExplorer)];
Expand All @@ -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
Expand Down

0 comments on commit 265927b

Please sign in to comment.