diff --git a/TrimSPelec.js b/TrimSPelec.js index bf9dcce..482d701 100644 --- a/TrimSPelec.js +++ b/TrimSPelec.js @@ -155,7 +155,12 @@ function firstLoad() { let trimSPcfg=prep_cfg(0); // Save file to filename console.log('Save file to '+filename); - try { fs.writeFileSync(filename, trimSPcfg, 'utf-8'); } + try { + fs.writeFileSync(filename, trimSPcfg, 'utf-8'); + if (typeof showTransientWarning === 'function') { + showTransientWarning('Saved configuration to ' + filename, document.getElementById('workPath'), 4000); + } + } catch(e) { alert('Failed to save the file !'); } }); // Catch calls for plotProf diff --git a/forge.config.js b/forge.config.js index 829a428..227c54c 100644 --- a/forge.config.js +++ b/forge.config.js @@ -41,6 +41,7 @@ module.exports = { description: 'TRIM.SP simulation GUI for ion implantation studies.', baseVersion: '24.08', runtimeVersion: '24.08', + extraFlatpakBuilderArgs: ['--state-dir=.flatpak-builder'], icon: { '16x16': 'appicons/icons/png/16x16.png', '24x24': 'appicons/icons/png/24x24.png', diff --git a/resources/bin/trimspNL b/resources/bin/trimspNL index c84d1ad..5f0977f 100755 Binary files a/resources/bin/trimspNL and b/resources/bin/trimspNL differ