xnview wrote: Wed May 03, 2023 6:26 am
why it ask if you want to save the file??
file is dirty
As far as I can see, OP reports the behavior that happens when you click the "No" button, but I'd call it "unpolished behavior" and not a bug.
it happens when open and modify:
- single file in folder and move any direction from it
- first file in folder and move to the prev file
- last file in folder and move to the next file
"Save changed file" dialog will popup

- first_last_file_save_dialog.png (6.73 KiB) Viewed 433 times
Existing behaviour
when you press No:
- file will not saved (as expected)
- tab will have the same file openned (as expected)
-
file will still have all unsaved changes (dirty state) - this is the reporting issue
Desired behaviour
when you press No:
- file will not saved (same)
- tab will have the same file openned (same)
-
file shall revert to its original state (all changes abandoned unsaved, dirty=false)
Why? Because you have:
- moved away from existing modified file (pressed ← / → or scrolled)
- pressed No in save dialog, confirming you do not want to keep changes
and asking to save changes again (eg when you press Esc or arrows/scroll) is a bit annoying to my taste