mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-06-17 14:11:35 +00:00
Fix returning to the host selection screen after a failure
This commit is contained in:
@@ -85,9 +85,9 @@ static NSArray* appList;
|
|||||||
preferredStyle:UIAlertControllerStyleAlert];
|
preferredStyle:UIAlertControllerStyleAlert];
|
||||||
[applistAlert addAction:[UIAlertAction actionWithTitle:@"Ok" style:UIAlertActionStyleDestructive handler:nil]];
|
[applistAlert addAction:[UIAlertAction actionWithTitle:@"Ok" style:UIAlertActionStyleDestructive handler:nil]];
|
||||||
[self presentViewController:applistAlert animated:YES completion:nil];
|
[self presentViewController:applistAlert animated:YES completion:nil];
|
||||||
|
_selectedHost.online = NO;
|
||||||
|
[self showHostSelectionView];
|
||||||
});
|
});
|
||||||
_selectedHost.online = NO;
|
|
||||||
[self showHostSelectionView];
|
|
||||||
} else {
|
} else {
|
||||||
dispatch_async(dispatch_get_main_queue(), ^{
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
_computerNameButton.title = _selectedHost.name;
|
_computerNameButton.title = _selectedHost.name;
|
||||||
@@ -150,9 +150,9 @@ static NSArray* appList;
|
|||||||
preferredStyle:UIAlertControllerStyleAlert];
|
preferredStyle:UIAlertControllerStyleAlert];
|
||||||
[applistAlert addAction:[UIAlertAction actionWithTitle:@"Ok" style:UIAlertActionStyleDestructive handler:nil]];
|
[applistAlert addAction:[UIAlertAction actionWithTitle:@"Ok" style:UIAlertActionStyleDestructive handler:nil]];
|
||||||
[self presentViewController:applistAlert animated:YES completion:nil];
|
[self presentViewController:applistAlert animated:YES completion:nil];
|
||||||
|
host.online = NO;
|
||||||
|
[self showHostSelectionView];
|
||||||
});
|
});
|
||||||
host.online = NO;
|
|
||||||
[self showHostSelectionView];
|
|
||||||
} else {
|
} else {
|
||||||
Log(LOG_D, @"server info pair status: %@", [serverInfoResp getStringTag:@"PairStatus"]);
|
Log(LOG_D, @"server info pair status: %@", [serverInfoResp getStringTag:@"PairStatus"]);
|
||||||
if ([[serverInfoResp getStringTag:@"PairStatus"] isEqualToString:@"1"]) {
|
if ([[serverInfoResp getStringTag:@"PairStatus"] isEqualToString:@"1"]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user