From f45a98642b57fa59c1de477db710dbbdb4ca8061 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) {