qupath / qupath

QuPath - Open-source bioimage analysis for research
https://qupath.github.io
GNU General Public License v3.0
1.07k stars 282 forks source link

No way to hide/minimize script editor without closing scripts #1660

Closed petebankhead closed 1 month ago

petebankhead commented 1 month ago

Bug report

Describe the bug

After https://github.com/qupath/qupath/pull/1524 (I think) it's no longer possible to close the script editor without closing scripts.

This was flagged as a potential annoyance at https://github.com/qupath/qupath/pull/1524#issuecomment-2133544271 and then reported as an actual annoyance at https://forum.image.sc/t/feedback-on-qupath-v0-6-0-rc2/103187/3?u=petebankhead

To Reproduce

Steps to reproduce the behavior:

  1. Open a script editor in v0.6.0-rc2
  2. Type something, anything
  3. Try to close the script editor window
  4. See it isn't possible to close the window without saving the script
  5. Reopen the script editor - the script is gone

Expected behavior

Not sure.

v0.5.x and before permitted the script editor to be closed without requesting the user to save anything. The trouble with that was that people could easily lose edited scripts without being prompted to save changes.

Two possible options:

  1. Provide an option to hide the script editor without closing scripts - but still prompt to save changes when QuPath is being closed
  2. Keep current behaviour, but retain the last script when reopening the script editor window

The first option is perhaps the most useful, since the second would only permit retaining one script at a time - and multiple scripts may be open.

Desktop (please complete the following information):