Mentions légales du service

Skip to content
Snippets Groups Projects
Commit e82c31dd authored by ROSPARS Benoit's avatar ROSPARS Benoit
Browse files

Issue #94 : update recent files when new is saved and filter out if not exists

parent 8217b2e1
No related branches found
No related tags found
No related merge requests found
Pipeline #799177 canceled
......@@ -8,7 +8,9 @@ const { wait } = require('./utils');
const Store = require('electron-store');
const store = new Store();
const recentFiles = store.get('recentFiles', []);
const recentFiles = store.get('recentFiles', []).filter((r) => {
return fs.existsSync(r.filepath);
});
/**
* Get the list of recently opened ePoc projects
......@@ -152,6 +154,8 @@ const saveAsEpocProject = async function (project) {
if(!files) return null;
updateRecent(project);
return zipEpocProject(project.workdir, files);
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment