mastodon-sc / mastodon

Mastodon – a large-scale tracking and track-editing framework for large, multi-view images.
BSD 2-Clause "Simplified" License
66 stars 20 forks source link

Improve quality of life when loading Mastodon projects. #170

Closed tinevez closed 2 years ago

tinevez commented 2 years ago

By default, we do not restore the GUI state. Restoring the GUI state might be unwanted when scripting of using Mastodon in a headless manner. The launcher and DND entry points do however restore the GUI state.

Store up to 10 most recent Mastodon projects that opened successfully. Serialized to a YAML file in the .mastodon folder. Is not updated when the user creates a new project with 'save as'.

image

tinevez@METALLICA MINGW64 ~/.mastodon
$ ls
colormodes.yaml          debug.yaml  **recentprojects.yaml**               trackschemestyles.yaml
colormodes-post-pr.yaml  keymaps/    rendersettings.yaml
datagraphstyles.yaml     Plugins/    selectioncreatorexpressions.yaml
$ cat recentprojects.yaml
C:\Users\tinevez\Development\Mastodon\mastodon\samples\Celegans.mastodon
--- C:\Users\tinevez\Google Drive\Mastodon\FromVlado\mette_e1.mastodon
--- C:\Users\tinevez\Google Drive\Cours\MastodonI2K\CTC_TRIF_trainingVideo02_jy-tracked.mastodon
--- C:\Users\tinevez\Development\Mastodon\mastodon\samples\drosophila_crop.mastodon