"confirm file delete" doesn't

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: XnTriq, xnview

Post Reply
obelisk
Posts: 402
Joined: Fri Jan 09, 2009 9:54 am

"confirm file delete" doesn't

Post by obelisk » Fri Jul 17, 2015 8:29 am

"confirm file delete" doesn't at all
I'm using recycle bin
doesn't help on network drives though

User avatar
xnview
Author of XnView
Posts: 31598
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: "confirm file delete" doesn't

Post by xnview » Tue Jul 21, 2015 11:11 am

the settings of windows recycle bin is confirm too?
Pierre.

obelisk
Posts: 402
Joined: Fri Jan 09, 2009 9:54 am

Re: "confirm file delete" doesn't

Post by obelisk » Wed Jul 22, 2015 10:36 pm

No windows isn't.
Shouldn't rely on windows recycle bin confirm

User avatar
xnview
Author of XnView
Posts: 31598
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: "confirm file delete" doesn't

Post by xnview » Thu Jul 23, 2015 6:35 pm

obelisk wrote:No windows isn't.
Shouldn't rely on windows recycle bin confirm
i use the API of windows, so this setting (it's a change in windows since 7)
Pierre.

obelisk
Posts: 402
Joined: Fri Jan 09, 2009 9:54 am

Re: "confirm file delete" doesn't

Post by obelisk » Mon Jul 27, 2015 5:14 am

No, you shouldn't use API for windows.

To use API for windows the option name should be "use recycle bin options" - but no software does this.

"confirm file delete" suggests it's a local option.

User avatar
xnview
Author of XnView
Posts: 31598
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: "confirm file delete" doesn't

Post by xnview » Mon Jul 27, 2015 11:27 am

i use windows API to be able to use 'recycle bin'
Pierre.

obelisk
Posts: 402
Joined: Fri Jan 09, 2009 9:54 am

Re: "confirm file delete" doesn't

Post by obelisk » Sun Aug 09, 2015 11:05 pm

This is what non-programmers expect:


"use recycle bin" on => use windows API, "confirm file delete" option disabled (It's irrelevant)


"use recycle bin" off => use File.Delete (recursively), "confirm file delete" option enabled
"confirm file delete" on => MessageBox.Show Y/N

Post Reply