mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-06-15 21:21:45 +00:00
Avoid displaying error dialogs on passive actions like returning to foreground
This commit is contained in:
@@ -302,7 +302,13 @@ static NSMutableSet* hostList;
|
|||||||
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://github.com/moonlight-stream/moonlight-docs/wiki/Troubleshooting"]];
|
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://github.com/moonlight-stream/moonlight-docs/wiki/Troubleshooting"]];
|
||||||
}]];
|
}]];
|
||||||
[applistAlert addAction:[UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:nil]];
|
[applistAlert addAction:[UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:nil]];
|
||||||
[self presentViewController:applistAlert animated:YES completion:nil];
|
|
||||||
|
if (view != nil) {
|
||||||
|
// Only display an alert if this was the result of a real
|
||||||
|
// user action, not just passively entering the foreground again
|
||||||
|
[self presentViewController:applistAlert animated:YES completion:nil];
|
||||||
|
}
|
||||||
|
|
||||||
host.online = NO;
|
host.online = NO;
|
||||||
[self showHostSelectionView];
|
[self showHostSelectionView];
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user