1
0
mirror of https://github.com/Eugeny/tabby.git synced 2025-07-23 11:58:01 +00:00

fixed - 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

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