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/SearchThingsAction.m | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'QSThingsPlugin/Actions/SearchThingsAction.m') diff --git a/QSThingsPlugin/Actions/SearchThingsAction.m b/QSThingsPlugin/Actions/SearchThingsAction.m index 9b042b3..9f941e7 100644 --- a/QSThingsPlugin/Actions/SearchThingsAction.m +++ b/QSThingsPlugin/Actions/SearchThingsAction.m @@ -9,10 +9,8 @@ NS_ASSUME_NONNULL_BEGIN NSString *contents = [directObject displayName]; if (contents) { - NSString *urlString = [NSString stringWithFormat:@"things:///search?query=%@", contents]; - NSURL *url = [NSURL URLWithString:urlString]; - - [[NSWorkspace sharedWorkspace] openURL:url]; + NSDictionary *parameters = @{@"query": contents}; + [ThingsHelper callRoute:ThingsURLRouteSearch withParameters:parameters]; } else { NSLog(@"Could not get the text of the Things object."); } -- cgit