script-server icon indicating copy to clipboard operation
script-server copied to clipboard

realoading values for "script" dropdown each time it is being clicked

Open yosefy opened this issue 2 years ago • 4 comments

hello @bugy

use case: 1)there is a dropdown calculated from list. 2)after that, script is running and changing the values in file|dir that step 1 builds the list from 3)now i reopen the dropdown to rerun the script but it shows me old data

users are being bit confused :)

though not super critical

thanks

yosefy avatar Jul 17 '22 08:07 yosefy

Hi @yosefy the values are calculated only once, when a script is loaded (or a dependent parameter changes). Any OS changes are not monitored unfortunately

bugy avatar Jul 17 '22 09:07 bugy

I mean maybe can recalculate it when the user presses on the dropdown on the frontend as trigger?

for example: i get the list of files from dropdown then i choose few of them and script deletes those files now i want to delete more, but the dropdown still shows old data

usually the user won't open the dropdown again, but if he does... :)

i know you are busy, it is just a suggestion

thanks

On Sun, Jul 17, 2022 at 12:52 PM Iaroslav Shepilov @.***> wrote:

Hi @yosefy https://github.com/yosefy the values are calculated only once, when a script is loaded (or a dependent parameter changes). Any OS changes are not monitored unfortunately

— Reply to this email directly, view it on GitHub https://github.com/bugy/script-server/issues/562#issuecomment-1186463269, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADCXF3IJKN72NTAIL2ZV6W3VUPJUJANCNFSM53ZNFJVA . You are receiving this because you were mentioned.Message ID: @.***>

yosefy avatar Jul 17 '22 10:07 yosefy

Hi, got you, thanks :) I'll keep this ticket open, if someone would vote for it or even implement it :)

bugy avatar Jul 18 '22 08:07 bugy

Annoying bug :(

Perhaps the script launch params should self reload/refresh after execution is complete.

raszuk avatar Jan 15 '23 12:01 raszuk