mirror of
https://github.com/YTLitePlus/YTLitePlus.git
synced 2026-04-21 07:01:58 +00:00
Add reminder for YouTube Plus
This commit is contained in:
parent
beeb9eb19f
commit
6e9ec38c4a
2 changed files with 16 additions and 0 deletions
|
|
@ -145,6 +145,14 @@ static const NSInteger YTLiteSection = 789;
|
||||||
// Show a confirmation message or perform some other action here
|
// Show a confirmation message or perform some other action here
|
||||||
[[%c(GOOHUDManagerInternal) sharedInstance] showMessageMainThread:[%c(YTHUDMessage) messageWithText:@"Settings copied"]];
|
[[%c(GOOHUDManagerInternal) sharedInstance] showMessageMainThread:[%c(YTHUDMessage) messageWithText:@"Settings copied"]];
|
||||||
}
|
}
|
||||||
|
// Prompt to export YouTube Plus settings
|
||||||
|
UIAlertController *exportAlert = [UIAlertController alertControllerWithTitle:@"Export Settings" message:@"Note: This cannot save iSponsorBlock and most YouTube settings.\nWould you like to also export your YouTube Plus Settings?" preferredStyle:UIAlertControllerStyleAlert];
|
||||||
|
[exportAlert addAction:[UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:nil]];
|
||||||
|
[exportAlert addAction:[UIAlertAction actionWithTitle:@"Export" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
|
||||||
|
// Export YouTube Plus Settings functionality
|
||||||
|
[%c(YTLUserDefaults) exportYtlSettings];
|
||||||
|
}]];
|
||||||
|
[settingsViewController presentViewController:exportAlert animated:YES completion:nil];
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
@ -186,6 +194,13 @@ static const NSInteger YTLiteSection = 789;
|
||||||
}]];
|
}]];
|
||||||
[settingsViewController presentViewController:confirmPasteAlert animated:YES completion:nil];
|
[settingsViewController presentViewController:confirmPasteAlert animated:YES completion:nil];
|
||||||
}
|
}
|
||||||
|
// Reminder to import YouTube Plus settings
|
||||||
|
UIAlertController *reminderAlert = [UIAlertController alertControllerWithTitle:@"Reminder"
|
||||||
|
message:@"Remember to import your YouTube Plus settings as well."
|
||||||
|
preferredStyle:UIAlertControllerStyleAlert];
|
||||||
|
[reminderAlert addAction:[UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:nil]];
|
||||||
|
[settingsViewController presentViewController:reminderAlert animated:YES completion:nil];
|
||||||
|
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -133,6 +133,7 @@ typedef NS_ENUM(NSUInteger, GestureSection) {
|
||||||
|
|
||||||
// OLED Live Chat - @bhackel
|
// OLED Live Chat - @bhackel
|
||||||
@interface YTLUserDefaults : NSUserDefaults
|
@interface YTLUserDefaults : NSUserDefaults
|
||||||
|
+ (void)exportYtlSettings;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
// Hide Home Tab - @bhackel
|
// Hide Home Tab - @bhackel
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue