mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-06-17 14:11:35 +00:00
Fix a few cases where the loading frame could be left on-screen
This commit is contained in:
@@ -119,6 +119,7 @@ static NSMutableSet* hostList;
|
|||||||
usingCachedAppList = true;
|
usingCachedAppList = true;
|
||||||
dispatch_async(dispatch_get_main_queue(), ^{
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
if (host != self->_selectedHost) {
|
if (host != self->_selectedHost) {
|
||||||
|
[self hideLoadingFrame: nil];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -146,6 +147,7 @@ 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(), ^{
|
||||||
if (host != self->_selectedHost) {
|
if (host != self->_selectedHost) {
|
||||||
|
[self hideLoadingFrame: nil];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -165,6 +167,7 @@ static NSMutableSet* hostList;
|
|||||||
[self updateApplist:[appListResp getAppList] forHost:host];
|
[self updateApplist:[appListResp getAppList] forHost:host];
|
||||||
|
|
||||||
if (host != self->_selectedHost) {
|
if (host != self->_selectedHost) {
|
||||||
|
[self hideLoadingFrame: nil];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user