Fix bug with reminder again

This commit is contained in:
Bryce Hackel
2024-08-26 23:12:24 -07:00
committed by GitHub
parent 09721d4b3a
commit 5fb849297a

View File

@@ -156,12 +156,8 @@ static const NSInteger YTLiteSection = 789;
// Export YouTube Plus Settings functionality // Export YouTube Plus Settings functionality
[%c(YTLUserDefaults) exportYtlSettings]; [%c(YTLUserDefaults) exportYtlSettings];
}]]; }]];
// Get the root view controller
UIViewController *rootViewController = [UIApplication sharedApplication].keyWindow.rootViewController;
// Present the alert from the root view controller // Present the alert from the root view controller
[rootViewController presentViewController:exportAlert animated:YES completion:nil]; [settingsViewController presentViewController:exportAlert animated:YES completion:nil];
} }
return YES; return YES;