1.8.3: xnview asks if save file after the file deleted
Moderators: helmut, XnTriq, xnview, Dreamer
-
- Posts: 103
- Joined: Sun Nov 10, 2013 8:02 am
1.8.3: xnview asks if save file after the file deleted
This is a regression in 1.8.3 or .2.
1. Open an image, say, a.jpg.
2. Keep the viewer open, delete the file.
3. close the xnview.
Expected: it just closes.
Observed (regression): it asks if you want to save the file etc.
I don't want this new behavior because I often use xnview to open temp files.
1. Open an image, say, a.jpg.
2. Keep the viewer open, delete the file.
3. close the xnview.
Expected: it just closes.
Observed (regression): it asks if you want to save the file etc.
I don't want this new behavior because I often use xnview to open temp files.
Re: 1.8.3: xnview asks if save file after the file deleted
add the following to xnview.ini
user0 wrote: Mon Oct 14, 2024 10:59 am Behavior of Viewer tab when a source disappears (moved/deleted) has been updated in 1.8.2 and a new selector has been added to change the behavior (see image below).Code: Select all
[Viewer] dirtyWhenDisappear=false
- Apidae9124
- Posts: 11
- Joined: Tue Sep 13, 2022 10:41 am
- Contact:
Re: 1.8.3: xnview asks if save file after the file deleted
for those wondering and dealing with "1.8.3: xnview asks if save file after the file deleted", the .ini file on win10 is atuser0 wrote: Tue Nov 19, 2024 8:45 am add the following to xnview.iniuser0 wrote: Mon Oct 14, 2024 10:59 am Behavior of Viewer tab when a source disappears (moved/deleted) has been updated in 1.8.2 and a new selector has been added to change the behavior (see image below).Code: Select all
[Viewer] dirtyWhenDisappear=false
C:\Users\>>>yourusername<<<\AppData\Roaming\XnViewMP (change the part ">>>yourusername<<<" to your actual username as in the folder).
The code does work. It's frustrating to deal with such bugs and to be forced to become a junior programmer, but it is how it is.
Re: 1.8.3: xnview asks if save file after the file deleted
It's not a bug, it's a behavior when file doesn't exist anymoreApidae9124 wrote: Thu Dec 12, 2024 1:33 am The code does work. It's frustrating to deal with such bugs and to be forced to become a junior programmer, but it is how it is.
Pierre.
- Apidae9124
- Posts: 11
- Joined: Tue Sep 13, 2022 10:41 am
- Contact:
Re: 1.8.3: xnview asks if save file after the file deleted
I'm sorry. A feature that makes no sense and no one asked for looked like a bug for me and others in the office.xnview wrote: Thu Dec 12, 2024 6:09 amIt's not a bug, it's a behavior when file doesn't exist anymoreApidae9124 wrote: Thu Dec 12, 2024 1:33 am The code does work. It's frustrating to deal with such bugs and to be forced to become a junior programmer, but it is how it is.
It's like, you unlock the door, press the button to open and still get a prompt if you want to open the door

Like. Why on earth.. Plus. It wasn't there in all previous builds. But I'm not here to argue, just wanted to point out, and thank the one who shared a code to fix it. For an every day heavy user, who backed your project, it was a nightmare to deal with, while looking for answers.
Especially since "don't ask again" dialogue feature also did not work each and every time. Like, ughhh...
Re: 1.8.3: xnview asks if save file after the file deleted
whats the problem with this dialog?Apidae9124 wrote: Fri Dec 13, 2024 12:09 pm Especially since "don't ask again" dialogue feature also did not work each and every time. Like, ughhh...
Pierre.
- Apidae9124
- Posts: 11
- Joined: Tue Sep 13, 2022 10:41 am
- Contact:
Re: 1.8.3: xnview asks if save file after the file deleted
you browse through pictures, delete one, press confirm, close the xnview window and asked to save changes? if that is normal new "feature" for you, then everything is fine. but fir some if us it's illogical.xnview wrote: Mon Dec 16, 2024 7:06 amwhats the problem with this dialog?Apidae9124 wrote: Fri Dec 13, 2024 12:09 pm Especially since "don't ask again" dialogue feature also did not work each and every time. Like, ughhh...
Re: 1.8.3: xnview asks if save file after the file deleted
New approach (dirty Viewer tab on source file disappear) is fine as well as old one, just because you don't understand something doesn't mean it's wrong.
You have already been told how to change the behavior,
another option - set 'Save changes to file' to Never (in Settings > File operations), and Save dialog will not appear
You have already been told how to change the behavior,
another option - set 'Save changes to file' to Never (in Settings > File operations), and Save dialog will not appear
- Apidae9124
- Posts: 11
- Joined: Tue Sep 13, 2022 10:41 am
- Contact:
Re: 1.8.3: xnview asks if save file after the file deleted
"Save changes to file' to Never" dsnt work. It would keep bringing it up the dialogue. + Like I said, it's a "new feature" nobody asked for. No logic in that popup at all. if I want a file copy I make one. What's there to understand?user0 wrote: Mon Dec 16, 2024 8:04 am New approach (dirty Viewer tab on source file disappear) is fine as well as old one, just because you don't understand something doesn't mean it's wrong.
You have already been told how to change the behavior,
another option - set 'Save changes to file' to Never (in Settings > File operations), and Save dialog will not appear
It's like with file arrangement to make just like in windows - no option for that. How many ppl asked about it, cos it makes no sense to not have that option. but nah. it has to be backwards in that mass of settings where most gets lost in.
It's like we're on different planets or you're not using xnview on windows. maybe that's why it dsnt make sense what we say to each other

Re: 1.8.3: xnview asks if save file after the file deleted
The new behavior was asked, but in next release old behavior will be by default.Apidae9124 wrote: Mon Dec 16, 2024 8:09 am "Save changes to file' to Never" dsnt work. It would keep bringing it up the dialogue. + Like I said, it's a "new feature" nobody asked for. No logic in that popup at all. if I want a file copy I make one. What's there to understand?
The problem with "Save changes to file" is only when dirtyWhenDisappear=true?
Please send me your .ini to reproduce...
Pierre.
- Apidae9124
- Posts: 11
- Joined: Tue Sep 13, 2022 10:41 am
- Contact:
Re: 1.8.3: xnview asks if save file after the file deleted
PM sent.xnview wrote: Mon Dec 16, 2024 9:21 amThe new behavior was asked, but in next release old behavior will be by default.Apidae9124 wrote: Mon Dec 16, 2024 8:09 am "Save changes to file' to Never" dsnt work. It would keep bringing it up the dialogue. + Like I said, it's a "new feature" nobody asked for. No logic in that popup at all. if I want a file copy I make one. What's there to understand?
The problem with "Save changes to file" is only when dirtyWhenDisappear=true?
Please send me your .ini to reproduce...
Re: 1.8.3: xnview asks if save file after the file deleted
Could you send the way to reproduce the problem with your .ini?Apidae9124 wrote: Mon Dec 16, 2024 4:19 pmPM sent.xnview wrote: Mon Dec 16, 2024 9:21 amThe new behavior was asked, but in next release old behavior will be by default.Apidae9124 wrote: Mon Dec 16, 2024 8:09 am "Save changes to file' to Never" dsnt work. It would keep bringing it up the dialogue. + Like I said, it's a "new feature" nobody asked for. No logic in that popup at all. if I want a file copy I make one. What's there to understand?
The problem with "Save changes to file" is only when dirtyWhenDisappear=true?
Please send me your .ini to reproduce...
I open an image file, modify it, click on next, 'save changes' dialog, click 'dont ask again', modify image, next and no more dialog
Pierre.
Re: 1.8.3: xnview asks if save file after the file deleted
I reported this as a bug too, here: viewtopic.php?p=203068#p203068
...And was linked to this thread. Makes no sense to me to ask if you want to save changes to a file that you just moved/deleted...honestly can't even conceive of the logic of that. Like if I say "yes", what does it even save? Also, if I move an entire folder full of files, it asks me to save a random one of them?
Anyway, glad to see there's a config option to revert this buggy-looking behavior.
...And was linked to this thread. Makes no sense to me to ask if you want to save changes to a file that you just moved/deleted...honestly can't even conceive of the logic of that. Like if I say "yes", what does it even save? Also, if I move an entire folder full of files, it asks me to save a random one of them?
Anyway, glad to see there's a config option to revert this buggy-looking behavior.
Re: 1.8.3: xnview asks if save file after the file deleted
This is really very annoying behavior of the program, it appeared about two or three versions ago. Usually I open the folder with screenshots and just delete unnecessary ones while viewing, and when I close the program it starts asking me whether I need to save changes in the deleted file. And if I answer YES, then these files will return from oblivion, as if they were not deleted. And yes, the "do not ask" checkbox is not saved. 

Re: 1.8.3: xnview asks if save file after the file deleted
with 1.8.5? Please describe the way to reproduce?MARK2580 wrote: Fri Feb 14, 2025 3:38 am This is really very annoying behavior of the program, it appeared about two or three versions ago. Usually I open the folder with screenshots and just delete unnecessary ones while viewing, and when I close the program it starts asking me whether I need to save changes in the deleted file. And if I answer YES, then these files will return from oblivion, as if they were not deleted. And yes, the "do not ask" checkbox is not saved.![]()
Pierre.