fix recent folders

pull/5370/head
filip mertens 11 months ago
parent 66254af50f
commit 5bf8a97a15
  1. 5
      apps/remixdesktop/src/plugins/fsPlugin.ts

@ -35,7 +35,10 @@ export class FSPlugin extends ElectronBasePlugin {
async onActivation(): Promise<void> {
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) {

Loading…
Cancel
Save