From c1090cf7904b33c7af5d8c2f4468d7bb7cb0ada9 Mon Sep 17 00:00:00 2001 From: Dhinak G <17605561+dhinakg@users.noreply.github.com> Date: Sat, 30 Dec 2023 14:15:26 -0500 Subject: [PATCH] Change close buttons to `UIAlertActionStyleCancel` --- TrollStore/TSInstallationController.m | 2 +- TrollStore/TSSettingsListController.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TrollStore/TSInstallationController.m b/TrollStore/TSInstallationController.m index 5c4d2eb..4caf61f 100644 --- a/TrollStore/TSInstallationController.m +++ b/TrollStore/TSInstallationController.m @@ -54,7 +54,7 @@ extern NSUserDefaults* trollStoreUserDefaults(void); } else if (ret == 182) { // non-fatal informative message UIAlertController* rebootNotification = [UIAlertController alertControllerWithTitle:@"Reboot Required" message:[error localizedDescription] preferredStyle:UIAlertControllerStyleAlert]; - UIAlertAction* closeAction = [UIAlertAction actionWithTitle:@"Close" style:UIAlertActionStyleDefault handler:^(UIAlertAction* action) + UIAlertAction* closeAction = [UIAlertAction actionWithTitle:@"Close" style:UIAlertActionStyleCancel handler:^(UIAlertAction* action) { if(completionBlock) completionBlock(YES, nil); }]; diff --git a/TrollStore/TSSettingsListController.m b/TrollStore/TSSettingsListController.m index d9037cd..3b3efca 100644 --- a/TrollStore/TSSettingsListController.m +++ b/TrollStore/TSSettingsListController.m @@ -408,7 +408,7 @@ extern NSUserDefaults* trollStoreUserDefaults(void); message:@"After rebooting, select \"Turn On\" to enable developer mode." preferredStyle:UIAlertControllerStyleAlert ]; - UIAlertAction* closeAction = [UIAlertAction actionWithTitle:@"Close" style:UIAlertActionStyleDefault handler:^(UIAlertAction* action) + UIAlertAction* closeAction = [UIAlertAction actionWithTitle:@"Close" style:UIAlertActionStyleCancel handler:^(UIAlertAction* action) { [self reloadSpecifiers]; }];