better new profile name handling - fixes #4325

This commit is contained in:
Eugene Pankov
2021-08-02 20:52:39 +02:00
parent c1a1f53707
commit ab8061ab39
6 changed files with 32 additions and 3 deletions

View File

@@ -84,6 +84,10 @@ export class LocalProfilesService extends ProfileProvider<LocalProfile> {
}
}
getSuggestedName (profile: LocalProfile): string {
return this.getDescription(profile)
}
getDescription (profile: PartialProfile<LocalProfile>): string {
return profile.options?.command ?? ''
}