mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-19 18:12:06 +00:00
Delete Sources/YTCastConfirm.xm
This commit is contained in:
parent
73e1a91eda
commit
991fcb3087
1 changed files with 0 additions and 21 deletions
|
|
@ -1,21 +0,0 @@
|
|||
#import "../Tweaks/YouTubeHeader/YTAlertView.h"
|
||||
#import "uYouPlus.h"
|
||||
|
||||
extern NSBundle *uYouPlusBundle();
|
||||
|
||||
// YTCastConfirm: https://github.com/JamieBerghmans/YTCastConfirm
|
||||
%hook MDXPlaybackRouteButtonController
|
||||
- (void)didPressButton:(id)arg1 {
|
||||
if (IS_ENABLED(@"castConfirm_enabled")) {
|
||||
NSBundle *tweakBundle = uYouPlusBundle();
|
||||
YTAlertView *alertView = [%c(YTAlertView) confirmationDialogWithAction:^{
|
||||
%orig;
|
||||
} actionTitle:LOC(@"MSG_YES")];
|
||||
alertView.title = LOC(@"CASTING");
|
||||
alertView.subtitle = LOC(@"MSG_ARE_YOU_SURE");
|
||||
[alertView show];
|
||||
} else {
|
||||
return %orig;
|
||||
}
|
||||
}
|
||||
%end
|
||||
Loading…
Reference in a new issue