Skip to content

Commit

Permalink
feat: update change theme confirm for new picker ui
Browse files Browse the repository at this point in the history
  • Loading branch information
SoCuul committed Sep 23, 2024
1 parent 838a1bf commit 6fd7725
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Features/Confirm/ChangeThemeConfirm.x
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,16 @@
return %orig;
}
}
%end

%hook IGDirectThreadThemeKitSwift.IGDirectThreadThemePreviewController
- (void)primaryButtonTapped {
if ([SCIManager getPref:@"change_direct_theme_confirm"]) {
NSLog(@"[SCInsta] Confirm change direct theme triggered");

[SCIUtils showConfirmation:^(void) { %orig; }];
} else {
return %orig;
}
}
%end

0 comments on commit 6fd7725

Please sign in to comment.