mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-10-25 13:31:47 +00:00
fixed issue with apps duplicating in app list
This commit is contained in:
1 parent
8f12114a56
commit
9c6b718be2
6 files changed
+18
-12
No files matched your search
@@ -10,8 +10,6 @@
|
||||
|
||||
@interface AppListResponse : NSObject <Response>
|
||||
|
||||
@property Host* host;
|
||||
|
||||
- (void)populateWithData:(NSData *)data;
|
||||
- (NSArray*) getAppList;
|
||||
- (BOOL) isStatusOk;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
@implementation AppListResponse {
|
||||
NSMutableArray* _appList;
|
||||
}
|
||||
@synthesize data, statusCode, statusMessage, host;
|
||||
@synthesize data, statusCode, statusMessage;
|
||||
|
||||
static const char* TAG_APP = "App";
|
||||
static const char* TAG_APP_TITLE = "AppTitle";
|
||||
@@ -99,7 +99,6 @@ static const char* TAG_APP_IS_RUNNING = "IsRunning";
|
||||
App* app = [dataMan createApp];
|
||||
app.name = appName;
|
||||
app.id = appId;
|
||||
app.host = host;
|
||||
app.isRunning = appIsRunning;
|
||||
[_appList addObject:app];
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@
|
||||
[dataMan removeHost:host];
|
||||
}
|
||||
}
|
||||
[dataMan saveHosts];
|
||||
[dataMan saveData];
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user