Hello, I just found an unintended behavior (I hope..) using shortcut with autoloaded scripts in version 1.2.4 (no problem with version 1.2.3).
For the context, I'm working in a virtual machine on Linux so PhotoScan takes a few seconds to load the interface. I noticed that if I launch a given script with a shortcut during that time it will automatically close the project at the end.
Here is a MCVE to add to the script folder, just hit Alt+z right before PhotoScan finishes loading up the interface.
import PhotoScan
def foo():
project_file = PhotoScan.app.getOpenFileName('Open project file')
doc = PhotoScan.app.document
doc.open(project_file)
doc.chunk.label = 'test'
if __name__ == '__main__':
PhotoScan.app.addMenuItem('test close project bug', foo, 'alt+z')
This is really annoying to see PhotoScan close a project after an error or at the end...
Edit: I just tested on Windows and the same behavior happens (though I had a way smaller time frame to test it).