fixed #7727 - allow hiding individual profiles from the selector

This commit is contained in:
Eugene Pankov
2023-06-04 21:22:05 +02:00
parent e813133f12
commit c983743b57
4 changed files with 54 additions and 7 deletions

View File

@@ -48,6 +48,7 @@ enableExperimentalFeatures: false
pluginBlacklist: []
commandBlacklist: []
providerBlacklist: []
profileBlacklist: []
hacks:
disableGPU: false
disableVibrancyWhileDragging: false

View File

@@ -153,6 +153,8 @@ export class ProfilesService {
profiles = profiles.filter(x => !x.isTemplate)
profiles = profiles.filter(x => x.id && !this.config.store.profileBlacklist.includes(x.id))
options = [...options, ...profiles.map((p): SelectorOption<void> => ({
...this.selectorOptionForProfile(p),
weight: p.isBuiltin ? 2 : 1,