mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-06-17 22:23:52 +00:00
Long clicking hosts that aren't paired doesn't bring up any useful options, so disable it
This commit is contained in:
@@ -216,6 +216,12 @@ static NSArray* appList;
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (void)hostLongClicked:(Host *)host view:(UIView *)view {
|
- (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);
|
Log(LOG_D, @"Long clicked host: %@", host.name);
|
||||||
UIAlertController* longClickAlert = [UIAlertController alertControllerWithTitle:host.name message:@"" preferredStyle:UIAlertControllerStyleActionSheet];
|
UIAlertController* longClickAlert = [UIAlertController alertControllerWithTitle:host.name message:@"" preferredStyle:UIAlertControllerStyleActionSheet];
|
||||||
if (host.online) {
|
if (host.online) {
|
||||||
|
|||||||
Reference in New Issue
Block a user