From 1613c951d49e6d85aff52f312d57fa087b35c079 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Wed, 10 Sep 2025 22:48:37 +0200 Subject: Move things URL calls to a helper --- QSThingsPlugin/Actions/ShowInThingsAction.m | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'QSThingsPlugin/Actions/ShowInThingsAction.m') 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."); } -- cgit