mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-27 14:30:25 +00:00
Long clicking hosts that aren't paired doesn't bring up any useful options, so disable it
This commit is contained in:
1 parent
38776a01e4
commit
4c95773131
1 file changed
+6
@@ -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