The editor script should only work on .gui files, it works with any file and can behave badly if done so
subsoap opened this issue · 2 comments
subsoap commented
The editor script should only get a context option while on a .gui file, not other files.
subsoap commented
Looks like it has this line
return ends_with(path, ".gui") or ends_with(path, ".collection") or ends_with(path, ".gui_script")
But it is meant to only work with .gui files. If a collection is targeted it messes up.
The docs say
Right click in on a.gui file in the outline and selected the menu item, it creates a .collection and a .gui_script with the same name as the .gui file. It adds the file with some basic setup done to them, adding the selected gui script to the created gui scene and in turns adds the gui scene to the newly created collection.
So I think the right thing to do would be to disable the other two and keep .gui only. If the other two are meant as origins for screens they can be added properly later.