AY2425S1-CS2103-F13-1 / tp

https://ay2425s1-cs2103-f13-1.github.io/tp/
MIT License
0 stars 5 forks source link

FLAW: Logger Misleads About Data File Creation Upon Mac CMD+Q Quit #219

Open SeeYangZhi opened 4 hours ago

SeeYangZhi commented 4 hours ago

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:

  1. Run the app from scratch (with sample data provided).
  2. Do not execute any commands.
  3. Immediately quit the app using CMD+Q (macOS shortcut).
  4. Observe that no data file is saved upon quitting the app.

Expected Behavior:

Observed Behavior:

Additional Context:

seanlim commented 4 hours ago

I think that the data file should be saved when the user CMD Qs