mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-19 22:22:06 +00:00
Removed deprecated workaround
This commit is contained in:
parent
4fc42767e0
commit
265927b390
1 changed files with 1 additions and 11 deletions
12
uYouPlus.xm
12
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<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)];
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue