When running the app on macOS, if a user quits the app using CMD+Q immediately after loading the app for the first time, without executing any commands, no data file is saved. However, the logger misleadingly suggests that a data file has been created, even though this is not the case.
Steps to Reproduce:
Run the app from scratch (with sample data provided).
Do not execute any commands.
Immediately quit the app using CMD+Q (macOS shortcut).
Observe that no data file is saved upon quitting the app.
Expected Behavior:
The logger should not indicate that a data file has been created unless the file has actually been written to disk.
The data file should either be saved automatically when quitting the app (CMD+Q) or the logger should correctly indicate that no file has been created.
Observed Behavior:
The logger outputs a message suggesting that a data file has been created even though no file exists.
May refer to the logger code in MainApp.java
Additional Context:
When using the exit command to close the app, the data file is saved correctly.
When running the app on macOS, if a user quits the app using CMD+Q immediately after loading the app for the first time, without executing any commands, no data file is saved. However, the logger misleadingly suggests that a data file has been created, even though this is not the case.
Steps to Reproduce:
CMD+Q
(macOS shortcut).Expected Behavior:
Observed Behavior:
MainApp.java
Additional Context:
exit
command to close the app, the data file is saved correctly.