From 5bf8a97a15cbdb3c94b7eb5f13febce58226c99b Mon Sep 17 00:00:00 2001 From: filip mertens Date: Mon, 1 Jan 2024 16:00:14 +0100 Subject: [PATCH] fix recent folders --- apps/remixdesktop/src/plugins/fsPlugin.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/remixdesktop/src/plugins/fsPlugin.ts b/apps/remixdesktop/src/plugins/fsPlugin.ts index b1984316b5..e7bc06df6c 100644 --- a/apps/remixdesktop/src/plugins/fsPlugin.ts +++ b/apps/remixdesktop/src/plugins/fsPlugin.ts @@ -35,7 +35,10 @@ export class FSPlugin extends ElectronBasePlugin { async onActivation(): Promise { const config = await this.call('electronconfig' as any, 'readConfig') const openedFolders = (config && config.openedFolders) || [] - this.call('electronconfig', 'writeConfig', {openedFolders: openedFolders}) + const recentFolders = (config && config.recentFolders) || [] + this.call('electronconfig', 'writeConfig', {...config, + recentFolders: recentFolders, + openedFolders: openedFolders}) const foldersToDelete: string[] = [] if (openedFolders && openedFolders.length) { for (const folder of openedFolders) {