mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-08 05:20:01 +00: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> {
|
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'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user