When starting the GUI, the program will search for a previous session settings file [in platformdirs.user_config_dir("Dirigo-GUI", "Dirigo")]. If it's not found then it uses a default set of parameters (channel display limits, light/dark mode, etc). If it's found, but there's an error--like if a different number of detectors/digitizer channels is now enabled--then the program will raise an error and quit. This can also happen when any of the persistent parameters change or are added/removed, a frequent occurrence in the early stage of this project.
Goals:
- wrap the parameter imports in some try-except blocks
- re-evaluate what should be saved to restore later
- maybe: raise some sort of soft warning
- optional: consider if the defaults all make sense
- optional: consider making user profiles
When starting the GUI, the program will search for a previous session settings file [in platformdirs.user_config_dir("Dirigo-GUI", "Dirigo")]. If it's not found then it uses a default set of parameters (channel display limits, light/dark mode, etc). If it's found, but there's an error--like if a different number of detectors/digitizer channels is now enabled--then the program will raise an error and quit. This can also happen when any of the persistent parameters change or are added/removed, a frequent occurrence in the early stage of this project.
Goals: