mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-25 13:31:41 +00:00
Don't show error messages if the PC isn't selected anymore
This commit is contained in:
1 parent
3151ac6bf0
commit
46fe7a8aed
1 file changed
+10
@@ -105,6 +105,11 @@ static NSMutableSet* hostList;
|
|||||||
Log(LOG_W, @"Failed to get applist: %@", appListResp.statusMessage);
|
Log(LOG_W, @"Failed to get applist: %@", appListResp.statusMessage);
|
||||||
dispatch_async(dispatch_get_main_queue(), ^{
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
[self hideLoadingFrame];
|
[self hideLoadingFrame];
|
||||||
|
|
||||||
|
if (host != _selectedHost) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
UIAlertController* applistAlert = [UIAlertController alertControllerWithTitle:@"Fetching App List Failed"
|
UIAlertController* applistAlert = [UIAlertController alertControllerWithTitle:@"Fetching App List Failed"
|
||||||
message:@"The connection to the PC was interrupted."
|
message:@"The connection to the PC was interrupted."
|
||||||
preferredStyle:UIAlertControllerStyleAlert];
|
preferredStyle:UIAlertControllerStyleAlert];
|
||||||
@@ -228,6 +233,11 @@ static NSMutableSet* hostList;
|
|||||||
Log(LOG_W, @"Failed to get server info: %@", serverInfoResp.statusMessage);
|
Log(LOG_W, @"Failed to get server info: %@", serverInfoResp.statusMessage);
|
||||||
dispatch_async(dispatch_get_main_queue(), ^{
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
[self hideLoadingFrame];
|
[self hideLoadingFrame];
|
||||||
|
|
||||||
|
if (host != _selectedHost) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
UIAlertController* applistAlert = [UIAlertController alertControllerWithTitle:@"Fetching Server Info Failed"
|
UIAlertController* applistAlert = [UIAlertController alertControllerWithTitle:@"Fetching Server Info Failed"
|
||||||
message:@"The connection to the PC was interrupted."
|
message:@"The connection to the PC was interrupted."
|
||||||
preferredStyle:UIAlertControllerStyleAlert];
|
preferredStyle:UIAlertControllerStyleAlert];
|
||||||
|
|||||||
Reference in new issue
Block a user