mirror of
https://github.com/Eugeny/tabby
synced 2025-03-04 15:17:17 +00:00
feat[core): Eugeny/tabby#7057 order recent profile
This commit is contained in:
parent
0101ffddb6
commit
4dedbbc25a
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue