From 4dedbbc25a8f09d69630bbe9de81be5824fa0fbf Mon Sep 17 00:00:00 2001 From: Clem Fern Date: Thu, 20 Jul 2023 20:07:55 +0200 Subject: [PATCH] feat[core): Eugeny/tabby#7057 order recent profile --- tabby-core/src/services/profiles.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tabby-core/src/services/profiles.service.ts b/tabby-core/src/services/profiles.service.ts index 943d11c2dd..cc0fc1f945 100644 --- a/tabby-core/src/services/profiles.service.ts +++ b/tabby-core/src/services/profiles.service.ts @@ -118,12 +118,12 @@ export class ProfilesService { try { const recentProfiles = this.getRecentProfiles() - let options: SelectorOption[] = recentProfiles.map(p => ({ + let options: SelectorOption[] = recentProfiles.map((p, i) => ({ ...this.selectorOptionForProfile(p), group: this.translate.instant('Recent'), icon: 'fas fa-history', color: p.color, - weight: -2, + weight: i - (recentProfiles.length + 1), callback: async () => { if (p.id) { p = (await this.getProfiles()).find(x => x.id === p.id) ?? p