Deletion Toggle for Tree

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Slideshow BoB
Posts: 41
Joined: 03 Apr 2024 18:46

Deletion Toggle for Tree

Post by Slideshow BoB »

hey guys.

Is there a way I can have a button enabling deletion toggle from the tree? Right now I almost deleted a whole 5 years of carefully crafted content. Yeah shame on me but I think this should be easily avoidable.

GreetingsFromPoland
Posts: 283
Joined: 29 Sep 2022 14:20
Location: Win10 @125%

Re: Deletion Toggle for Tree

Post by GreetingsFromPoland »

hi !
maybe this option will work for you ?

Code: Select all

Configuration | General | Safety Belts, Network | Safety Belts | [x] Disallow delete by key in folder tree

Slideshow BoB
Posts: 41
Joined: 03 Apr 2024 18:46

Re: Deletion Toggle for Tree

Post by Slideshow BoB »

FANTASTIC!

But - is there a way I can quickly toggle this by using a custom button or even a key combination?

and... greetings! :D

GreetingsFromPoland
Posts: 283
Joined: 29 Sep 2022 14:20
Location: Win10 @125%

Re: Deletion Toggle for Tree

Post by GreetingsFromPoland »

hi!
i believe you would add a custom button with this code in it to toggle the setting :

Code: Select all

conf("DisallowDeleteByKeyTree", 0, 1);
i checked the scripting section of the manual, under

Code: Select all

conf
for an example and then searched in my INI file to find the setting.

if this is incorrect or could be done better, one of the forum scripting guru's will most likely help out.

Slideshow BoB
Posts: 41
Joined: 03 Apr 2024 18:46

Re: Deletion Toggle for Tree

Post by Slideshow BoB »

Help file topic not being explicit on this, I am assuming the setting is forgotten at app restart, right? I mean, it will not set a permanent state for the changes made, will it...?

admin
Site Admin
Posts: 64916
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Deletion Toggle for Tree

Post by admin »

conf("DisallowDeleteByKeyTree") does not exist.

Slideshow BoB
Posts: 41
Joined: 03 Apr 2024 18:46

Re: Deletion Toggle for Tree

Post by Slideshow BoB »

error: "Key 'DisallowDeleteByKeyTree' is not supported by Tweak."

either setting a custom button or running it as a 'run script...' entry.

Slideshow BoB
Posts: 41
Joined: 03 Apr 2024 18:46

Re: Deletion Toggle for Tree

Post by Slideshow BoB »

admin wrote: 06 Oct 2025 15:41 conf("DisallowDeleteByKeyTree") does not exist.
heck.
thanks, admin.

Post Reply