lukehaas / RunJS

RunJS is a JavaScript playground for macOS, Windows and Linux. Write code with instant feedback and access to Node.js and browser APIs.
https://runjs.app
2.05k stars 45 forks source link

No warning to save changes prior closing a file #609

Closed jurajkapsz closed 9 months ago

jurajkapsz commented 9 months ago

Using RunJS v2.11.0 @ GNU/Linux.

When I have unsaved changes in a file and close the file via tab, the file closes without prior "Save changes?" dialog.

How to reproduce:

  1. Open a new tab.
  2. Make some changes.
  3. Close the tab. The file closes without any warning of having unsaved changes.

Expected result:

Show a dialog with option to save changes before closing a modified file.

lukehaas commented 9 months ago

You can enable the confirm close option if you want this behaviour: Screenshot 2024-02-26 at 08 11 28

jurajkapsz commented 9 months ago

Ah, ok, I see. I've missed the save changes dialog, but I've read this issue and understand better this behaviour.

Thanks Luke! I decided not to use the confirm option, as it fits better the way I use RunJS.