diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-09-10 22:48:37 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-09-10 22:48:37 +0200 |
| commit | 1613c951d49e6d85aff52f312d57fa087b35c079 (patch) | |
| tree | c31b74c56f32c3a60e628c187b6f7c236fffe36e /QSThingsPlugin/Actions/ShowInThingsAction.m | |
| parent | 7cf393095282077b0bbae3046826b67f4f20a8eb (diff) | |
Move things URL calls to a helper
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."); } |