Add notification when saving cfg file
This commit is contained in:
+6
-1
@@ -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
|
||||
|
||||
@@ -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.
Reference in New Issue
Block a user