make ssh the default quick-connect profile - fixes #4181

This commit is contained in:
Eugene Pankov 2021-07-10 14:10:55 +02:00
parent b9763044ee
commit 891cf42338
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -91,10 +91,12 @@ export class ButtonProvider extends ToolbarButtonProvider {
quickConnect (query: string) { quickConnect (query: string) {
for (const provider of this.profilesServices.getProviders()) { for (const provider of this.profilesServices.getProviders()) {
const profile = provider.quickConnect(query) if (provider.supportsQuickConnect) {
if (profile) { const profile = provider.quickConnect(query)
this.launchProfile(profile) if (profile) {
return this.launchProfile(profile)
return
}
} }
} }
this.notifications.error(`Could not parse "${query}"`) this.notifications.error(`Could not parse "${query}"`)