dinasset wrote:
Thanks Ofnuts.
By looking at the trace immediately after step 3 I understood when the problem occurs:
ONLY when adding a new script to be tested, the manager cannot find the new one as an entry to delete! in fact this is the trace:
......
Searching directories as C:\Users\User\.gimp-2.8/scripts_storage/* for scripts
4 directories as C:\Users\User\.gimp-2.8/scripts_storage/* for scripts
Manager of scripts created OK
Creating main dialog
Main dialog created
Scrollbox created
VBox created
Cancel button created
OK button created
OK sensed
Old containers; set([u'scripts in prova one-by-one'])
New containers; set([])
Activated containers; set([])
Deactivated containers; set([u'scripts in prova one-by-one'])
3 addons stored in C:\Users\User\.gimp-2.8/scripts_storage\scripts in prova one-by-one
Cannot de-activate C:\Users\User\.gimp-2.8/scripts/scripts in prova one-by-one-cossins_circulaires.scm: [Error 2] Impossibile trovare il file specificato: u'C:\\Users\\User\\.gimp-2.8/scripts/scripts in prova one-by-one-cossins_circulaires.scm'
Refresh: script-fu-refresh
Refresh OK
......
Do you think you can detect this OS error and close the "please wait.." window anyway?
Actually, the error logged was expected and the script carries on... And the "Main" window (the one with the list and Close/OK buttons) won't disappear by itself, you have to click the "Close" button (but it can remain up if you need to activate things often).
So the only unexpected behavior you have is that the status dialog ("Please wait..." and progress indicator) doesn't hide when it should, but I can't reproduce that behavior on Linux or Windows. I have added some more logging in the attached version(*). Check for 'Hiding status dialog' in the log.
Attachment:
addonCollectionManager.zip [4.91 KiB]
Downloaded 72 times
(*) logging is enhanced: the log file is now under a more recognizable name in the Gimp profile directory and the script logs to file on Windows/OSX and to the terminal on Linux.