diff options
Diffstat (limited to 'QSThingsPlugin/Actions/ShowInThingsAction.m')
| -rw-r--r-- | QSThingsPlugin/Actions/ShowInThingsAction.m | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/QSThingsPlugin/Actions/ShowInThingsAction.m b/QSThingsPlugin/Actions/ShowInThingsAction.m index 91fe3ec..cd04f73 100644 --- a/QSThingsPlugin/Actions/ShowInThingsAction.m +++ b/QSThingsPlugin/Actions/ShowInThingsAction.m @@ -14,10 +14,8 @@ NS_ASSUME_NONNULL_BEGIN if (contents) { NSString *uuid = [contents objectForKey:@"uuid"]; if (uuid) { - NSString *urlString = [NSString stringWithFormat:@"things:///show?id=%@", uuid]; - NSURL *url = [NSURL URLWithString:urlString]; - - [[NSWorkspace sharedWorkspace] openURL:url]; + NSDictionary *parameters = @{@"id": uuid}; + [ThingsHelper callRoute:ThingsURLRouteShow withParameters:parameters]; } else { NSLog(@"Things object did not have a uuid."); } |