Created attachment 128295 [details] Krita System Information SUMMARY I made a python script in order to save to a .kra file and export to PNG at the same time. When I tried to attribute it to a keyboard shortcut I noticed that it won't keep it. There are no errors whatsoever, it just doesn't. I tried looking the log to see if I could find something relevant but there was none. I can't think of a way to reproduce it, it just happens. Sorry. If you think of something I can tell you in order for you to reproduce it, I'll be glad to help. OBSERVED RESULT The pop-up window with the favourite scripts is empty, as if it cleared itself as soon as I clicked the 'OK' button. The script won't run when pressing the corresponding keys. EXPECTED RESULT The script shortcuts should stay and run when pressing the corresponding keys. SOFTWARE/OS VERSIONS macOS: 10.15.4 Qt Version: 5.12.7
can you check if this still happens with the 4.3 beta? We changed how python loads action in that...
Created attachment 128296 [details] Screen recording of the problem
(In reply to wolthera from comment #1) > can you check if this still happens with the 4.3 beta? We changed how python > loads action in that... Interestingly enough, with a fresh install of the 4.3 beta, the script I was trying to save was already there. However, I tried writing a basic 'hello world' script to see if the problem was gone and couldn't get it to stay in another slot. Really strange stuff!
Thanks for your comment! Automatically switching the status of this bug to REPORTED so that the KDE team knows that the bug is ready to get confirmed. In the future you may also do this yourself when providing needed information.
on macos and linux (the ones tested) I found the following behaviour. Adding a script works and can be called immediatly. but the action is not shown if "ten scripts" is opened again. krita has to be restarted for the scripts selected to be visible.
The bug report is talking about scripts set in the Ten Scripts plugin, not script actions added to the toolbar, which is what I fixed for 4.3.0.
Git commit 890a75597bcd91b37496bb0738b650c31ff815b1 by Halla Rempt. Committed on 20/09/2022 at 13:34. Pushed by rempt into branch 'master'. Save the scripts to the tenscripts' scripts list M +3 -0 plugins/python/tenscripts/tenscripts.py https://invent.kde.org/graphics/krita/commit/890a75597bcd91b37496bb0738b650c31ff815b1
Git commit c3df24efc2882c738741fdb8b5029e5bc471723b by Halla Rempt. Committed on 20/09/2022 at 13:34. Pushed by rempt into branch 'krita/5.1'. Save the scripts to the tenscripts' scripts list (cherry picked from commit 890a75597bcd91b37496bb0738b650c31ff815b1) M +3 -0 plugins/python/tenscripts/tenscripts.py https://invent.kde.org/graphics/krita/commit/c3df24efc2882c738741fdb8b5029e5bc471723b