Skip to content

Commit

Permalink
feat[core): #7057 order recent profile
Browse files Browse the repository at this point in the history
  • Loading branch information
Clem-Fern committed Jul 20, 2023
1 parent 0101ffd commit 4dedbbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tabby-core/src/services/profiles.service.ts
Expand Up @@ -118,12 +118,12 @@ export class ProfilesService {
try {
const recentProfiles = this.getRecentProfiles()

let options: SelectorOption<void>[] = recentProfiles.map(p => ({
let options: SelectorOption<void>[] = 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
Expand Down

0 comments on commit 4dedbbc

Please sign in to comment.