Skip to content

Commit

Permalink
may
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliesSurviving authored May 12, 2024
1 parent c26fb86 commit 99117aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Application/Dopamine/Jailbreak/DOJailbreaker.m
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ - (void)runWithError:(NSError **)errOut didRemoveJailbreak:(BOOL*)didRemove show
if (*errOut) {
*showLogs = NO;
return;
[[DOUIManager sharedInstance] JailbreakCompleteAlert];
[[DOUIManager sharedInstance] presentViewController:completealert animated:YES completion:nil]
}


Expand Down
8 changes: 5 additions & 3 deletions Application/Dopamine/UI/DOUIManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,11 @@ - (void)shareLogRecordFromView:(UIView *)sourceView

- (void)JailbreakCompleteAlert
{
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:DOLocalizedString(@"Test_Reboot_Title") message:DOLocalizedString(@"Test_Reboot_Message") preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *rebootAction = [UIAlertAction actionWithTitle:DOLocalizedString(@"Test_Reboot_Close") style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
exit(0);
UIAlertController* completealert = [UIAlertController alertControllerWithTitle:DOLocalizedString(@"Test_Reboot_Title") message:DOLocalizedString(@"Test_Reboot_Message") preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction* completealertAction = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault
handler:^(UIAlertAction * action) {}];

[completealert addAction:cancelAction];
}];
}

Expand Down

0 comments on commit 99117aa

Please sign in to comment.