Skip to content

Commit

Permalink
what
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliesSurviving authored May 12, 2024
1 parent bf026ff commit 8ec8902
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Application/Dopamine/Jailbreak/DOJailbreaker.m
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ - (void)runWithError:(NSError **)errOut didRemoveJailbreak:(BOOL*)didRemove show
*showLogs = NO;
return;

[[DOMainViewController sharedInstance] JailbreakCompleteAlert]
[[DOUIManager sharedInstance] JailbreakCompleteAlert]
}


Expand Down
8 changes: 0 additions & 8 deletions Application/Dopamine/UI/DOMainViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -322,14 +322,6 @@ -(void)simulateJailbreak
});
}

- (void)JailbreakCompleteAlert
{
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:completealertAction];
[self presentViewController:completealert animated:YES completion:nil];
};

- (void)fadeToBlack:(void (^)(void))completion
{
Expand Down
2 changes: 2 additions & 0 deletions Application/Dopamine/UI/DOUIManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ NS_ASSUME_NONNULL_BEGIN
- (void)setPackageManager:(NSString*)key enabled:(BOOL)enabled;
- (NSString *)localizedStringForKey:(NSString*)key;

@interface DOMainViewController : UIViewController <DOActionMenuDelegate>

@end

NSString *DOLocalizedString(NSString *string);
Expand Down
9 changes: 9 additions & 0 deletions Application/Dopamine/UI/DOUIManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,15 @@ - (NSArray*)enabledPackageManagers
return enabledPkgManagers;
}

- (void)JailbreakCompleteAlert
{
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:completealertAction];
[self presentViewController:completealert animated:YES completion:nil];
};

- (void)resetPackageManagers
{
[_preferenceManager removePreferenceValueForKey:@"enabledPkgManagers"];
Expand Down

0 comments on commit 8ec8902

Please sign in to comment.