1.8.3: xnview asks if save file after the file deleted

*** Please report new bugs here! ***

Moderators: helmut, XnTriq, xnview, Dreamer

fireattack
Posts: 103
Joined: Sun Nov 10, 2013 8:02 am

1.8.3: xnview asks if save file after the file deleted

Post by fireattack »

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.
User avatar
user0
XnThusiast
Posts: 2414
Joined: Sat May 09, 2015 9:37 am

Re: 1.8.3: xnview asks if save file after the file deleted

Post by user0 »

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
User avatar
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

Post by Apidae9124 »

user0 wrote: Tue Nov 19, 2024 8:45 am 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
for those wondering and dealing with "1.8.3: xnview asks if save file after the file deleted", the .ini file on win10 is at
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.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.8.3: xnview asks if save file after the file deleted

Post by xnview »

Apidae9124 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 not a bug, it's a behavior when file doesn't exist anymore
Pierre.
User avatar
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

Post by Apidae9124 »

xnview wrote: Thu Dec 12, 2024 6:09 am
Apidae9124 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 not a bug, it's a behavior when file doesn't exist anymore
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.
It's like, you unlock the door, press the button to open and still get a prompt if you want to open the door :shock:
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...
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.8.3: xnview asks if save file after the file deleted

Post by xnview »

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...
whats the problem with this dialog?
Pierre.
User avatar
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

Post by Apidae9124 »

xnview wrote: Mon Dec 16, 2024 7:06 am
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...
whats the problem with this dialog?
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.
User avatar
user0
XnThusiast
Posts: 2414
Joined: Sat May 09, 2015 9:37 am

Re: 1.8.3: xnview asks if save file after the file deleted

Post by user0 »

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
User avatar
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

Post by Apidae9124 »

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
"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?

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 :D
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.8.3: xnview asks if save file after the file deleted

Post by xnview »

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 new behavior was asked, but in next release old behavior will be by default.

The problem with "Save changes to file" is only when dirtyWhenDisappear=true?
Please send me your .ini to reproduce...
Pierre.
User avatar
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

Post by Apidae9124 »

xnview wrote: Mon Dec 16, 2024 9:21 am
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 new behavior was asked, but in next release old behavior will be by default.

The problem with "Save changes to file" is only when dirtyWhenDisappear=true?
Please send me your .ini to reproduce...
PM sent.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.8.3: xnview asks if save file after the file deleted

Post by xnview »

Apidae9124 wrote: Mon Dec 16, 2024 4:19 pm
xnview wrote: Mon Dec 16, 2024 9:21 am
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 new behavior was asked, but in next release old behavior will be by default.

The problem with "Save changes to file" is only when dirtyWhenDisappear=true?
Please send me your .ini to reproduce...
PM sent.
Could you send the way to reproduce the problem with your .ini?
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.
metal450
Posts: 150
Joined: Sun Apr 28, 2019 6:01 am

Re: 1.8.3: xnview asks if save file after the file deleted

Post by metal450 »

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.
User avatar
MARK2580
Posts: 91
Joined: Tue Nov 20, 2018 5:22 am

Re: 1.8.3: xnview asks if save file after the file deleted

Post by MARK2580 »

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. :bugconfirmed:
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.8.3: xnview asks if save file after the file deleted

Post by xnview »

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. :bugconfirmed:
with 1.8.5? Please describe the way to reproduce?
Pierre.
Post Reply