mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-15 21:22:40 +00:00
Change the PC status to offline and return to the host selection screen if server info or applist is unavailable
This commit is contained in:
@@ -87,6 +87,8 @@ static NSArray* appList;
|
|||||||
[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];
|
||||||
} else {
|
} else {
|
||||||
dispatch_async(dispatch_get_main_queue(), ^{
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
_computerNameButton.title = _selectedHost.name;
|
_computerNameButton.title = _selectedHost.name;
|
||||||
@@ -150,6 +152,8 @@ static NSArray* appList;
|
|||||||
[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];
|
||||||
} 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