Long clicking hosts that aren't paired doesn't bring up any useful options, so disable it

This commit is contained in:
Cameron Gutman
2015-07-11 00:13:58 -07:00
parent 38776a01e4
commit 4c95773131

View File

@@ -216,6 +216,12 @@ static NSArray* appList;
}
- (void)hostLongClicked:(Host *)host view:(UIView *)view {
// Long clicking a host is currently only applicable to paired
// computers, so ignore it for unpaired hosts.
if (host.pairState != PairStatePaired) {
return;
}
Log(LOG_D, @"Long clicked host: %@", host.name);
UIAlertController* longClickAlert = [UIAlertController alertControllerWithTitle:host.name message:@"" preferredStyle:UIAlertControllerStyleActionSheet];
if (host.online) {