mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-10-20 15:28:04 +00:00
now remove host from database when the user removes it
This commit is contained in:
1 parent
168eac17eb
commit
f209670c1a
3 files changed
+7
No files matched your search
@@ -124,6 +124,8 @@ static StreamConfiguration* streamConfig;
|
||||
[longClickAlert addAction:[UIAlertAction actionWithTitle:@"Remove Host" style:UIAlertActionStyleDestructive handler:^(UIAlertAction* action) {
|
||||
[hostList removeObject:host];
|
||||
[_discMan removeHostFromDiscovery:host];
|
||||
DataManager* dataMan = [[DataManager alloc] init];
|
||||
[dataMan removeHost:host];
|
||||
}]];
|
||||
[longClickAlert addAction:[UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:nil]];
|
||||
[self presentViewController:longClickAlert animated:YES completion:^{
|
||||
|
||||
Reference in new issue
Block a user