- remove legacy help button

This commit is contained in:
TrueZhuanjia committed 2025-07-29 08:49:50 +08:00
1 parent 96f11a4a69
commit e37c22b259
2 files changed
+4 -1

No files matched your search

+2
View File
@@ -72,12 +72,14 @@ NSString *const deviceName = @"roth";
#endif #endif
+ (void) addHelpOptionToDialog:(UIAlertController*)dialog { + (void) addHelpOptionToDialog:(UIAlertController*)dialog {
return;/*
#if !TARGET_OS_TV #if !TARGET_OS_TV
// tvOS doesn't have a browser // tvOS doesn't have a browser
[dialog addAction:[UIAlertAction actionWithTitle:[LocalizationHelper localizedStringForKey:@"Help"] style:UIAlertActionStyleDefault handler:^(UIAlertAction* action){ [dialog addAction:[UIAlertAction actionWithTitle:[LocalizationHelper localizedStringForKey:@"Help"] style:UIAlertActionStyleDefault handler:^(UIAlertAction* action){
[Utils launchUrl:@"https://github.com/moonlight-stream/moonlight-docs/wiki/Troubleshooting"]; [Utils launchUrl:@"https://github.com/moonlight-stream/moonlight-docs/wiki/Troubleshooting"];
}]]; }]];
#endif #endif
*/
} }
+ (BOOL) parseAddressPortString:(NSString*)addressPort address:(NSRange*)address port:(NSRange*)port { + (BOOL) parseAddressPortString:(NSString*)addressPort address:(NSRange*)address port:(NSRange*)port {
@@ -811,6 +811,8 @@
[self.navigationController popToRootViewControllerAnimated:NO]; [self.navigationController popToRootViewControllerAnimated:NO];
_extWindow = nil; _extWindow = nil;
self.mainFrameViewcontroller.settingsExpandedInStreamView = false; // reset this flag to false
} }
// External Screen connected // External Screen connected
@@ -957,7 +959,6 @@
- (void)disconnectRemoteSession { - (void)disconnectRemoteSession {
Log(LOG_I, @"Settings view disconnect the session in stream view"); Log(LOG_I, @"Settings view disconnect the session in stream view");
self.mainFrameViewcontroller.settingsExpandedInStreamView = false; // reset this flag to false
[self returnToMainFrame]; [self returnToMainFrame];
} }