From 891cf42338a9219439198bb6d648bfbcbc0dd41e Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sat, 10 Jul 2021 14:10:55 +0200 Subject: [PATCH] make ssh the default quick-connect profile - fixes #4181 --- tabby-core/src/buttonProvider.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tabby-core/src/buttonProvider.ts b/tabby-core/src/buttonProvider.ts index c64d3b15..29f6c3aa 100644 --- a/tabby-core/src/buttonProvider.ts +++ b/tabby-core/src/buttonProvider.ts @@ -91,10 +91,12 @@ export class ButtonProvider extends ToolbarButtonProvider { quickConnect (query: string) { for (const provider of this.profilesServices.getProviders()) { - const profile = provider.quickConnect(query) - if (profile) { - this.launchProfile(profile) - return + if (provider.supportsQuickConnect) { + const profile = provider.quickConnect(query) + if (profile) { + this.launchProfile(profile) + return + } } } this.notifications.error(`Could not parse "${query}"`)