Skip to content

Commit

Permalink
fix: open tab order no longer reverses on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
outercloudstudio committed Jun 30, 2023
1 parent 1022515 commit 0ff4047
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/TabSystem/OpenedFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export class OpenedFiles extends PersistentQueue<string> {
if (settingsState?.general?.restoreTabs ?? true) {
await this.fired

for (let i = 0; i < this.queue.elements.length; i++) {
for (let i = this.queue.elements.length - 1; i >= 0; i--) {
console.log(this.queue.elements[i])

try {
// Try to restore tab
await this.tabSystem.openPath(this.queue.elements[i], {
Expand Down

0 comments on commit 0ff4047

Please sign in to comment.