Add notification when saving cfg file

This commit is contained in:
2026-04-16 11:32:32 +02:00
parent 939ea3ca98
commit 788cf08fef
3 changed files with 7 additions and 1 deletions
+6 -1
View File
@@ -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
+1
View File
@@ -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',
Binary file not shown.