I wouldn't call that "normal conditions", as I think such conditions would have a script to only change settings temporarly to ensure it can be what must be done, but then restore whatever config the user had set.TheQwerty wrote:I disagree when it comes to normal conditions. If XY automatically resets anything changed in a script then I can't write a script that just changes settings, and I as a script writer will become very frustrated with that.
Anyways, that's why I originally thought that the function to change a setting could also, optionally, be "permanent".
Or simply you add an additional parameter: [, |p]admin wrote:Okay, I agree with everything (minus the confusion and the rubbish -- kidding). What about this: I add a variant command to "setting" called "setting_temp" or "settingT" or "settingR" (for restore). All settings set using this variant will be auto-reset when the script ends (or is cancelled at any point).
- empty : it's a temporary thing, ie. reset when script execution is over (no matter how)
- p : it's "permanent", ie. not reset after script execution
XYplorer Beta Club