mirror of
https://github.com/Eugeny/tabby.git
synced 2024-12-03 06:11:57 +08:00
fixed #8588 - hide hidden profiles in the "new profile" selector
This commit is contained in:
parent
ad764d2f50
commit
bc8ac12aef
@ -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'),
|
||||
|
Loading…
Reference in New Issue
Block a user