1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-25 08:33:27 +03:00

fixed #8588 - hide hidden profiles in the "new profile" selector

This commit is contained in:
Eugene Pankov 2023-06-16 16:12:43 +02:00
parent ad764d2f50
commit bc8ac12aef
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -60,6 +60,7 @@ export class ProfilesSettingsTabComponent extends BaseComponent {
async newProfile (base?: PartialProfile<Profile>): Promise<void> {
if (!base) {
const profiles = [...this.templateProfiles, ...this.builtinProfiles, ...this.profiles]
profiles = profiles.filter(x => !this.isProfileBlacklisted(x))
profiles.sort((a, b) => (a.weight ?? 0) - (b.weight ?? 0))
base = await this.selector.show(
this.translate.instant('Select a base profile to use as a template'),