Skip to content

Catch GUI state restore toml file errors #1

@tweber225

Description

@tweber225

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions