#1247 (Mac Catalyst edition)

- Added Manage Account on the Web to Help menu.
This commit is contained in:
David Sinclair 2024-10-17 11:15:54 -07:00
parent 8f6635df14
commit 87dbd4ec49
3 changed files with 14 additions and 8 deletions

View file

@ -49,6 +49,7 @@
- (IBAction)showFindFriends:(id)sender;
- (IBAction)showPremium:(id)sender;
- (IBAction)showSupportForum:(id)sender;
- (IBAction)showManageAccount:(id)sender;
- (IBAction)showLogout:(id)sender;
- (IBAction)findInFeeds:(id)sender;

View file

@ -394,6 +394,11 @@
[[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];
}
- (IBAction)showManageAccount:(id)sender {
NSURL *url = [NSURL URLWithString:@"https://www.newsblur.com/?next=account"];
[[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];
}
- (IBAction)showLogout:(id)sender {
[self.appDelegate confirmLogout];
}

View file

@ -1932,14 +1932,14 @@
[alertController dismissViewControllerAnimated:YES completion:nil];
[self actuallyLogout];
}]];
#if TARGET_OS_MACCATALYST
[alertController addAction:[UIAlertAction actionWithTitle: @"Delete Account" style:UIAlertActionStyleDestructive handler:^(UIAlertAction * action) {
[alertController dismissViewControllerAnimated:YES completion:nil];
[self actuallyLogout];
NSURL *url = [NSURL URLWithString:@"https://www.newsblur.com/profile/delete_account"];
[[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];
}]];
#endif
//#if TARGET_OS_MACCATALYST
// [alertController addAction:[UIAlertAction actionWithTitle: @"Delete Account" style:UIAlertActionStyleDestructive handler:^(UIAlertAction * action) {
// [alertController dismissViewControllerAnimated:YES completion:nil];
// [self actuallyLogout];
// NSURL *url = [NSURL URLWithString:@"https://www.newsblur.com/profile/delete_account"];
// [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];
// }]];
//#endif
[alertController addAction:[UIAlertAction actionWithTitle:@"Cancel"
style:UIAlertActionStyleCancel handler:nil]];
[self.feedsViewController presentViewController:alertController animated:YES completion:nil];