Skip to content

Allow opening statepoint files when one is already open#177

Merged
paulromano merged 3 commits into
openmc-dev:developfrom
pshriwise:dynamic-sp-files
Jul 9, 2026
Merged

Allow opening statepoint files when one is already open#177
paulromano merged 3 commits into
openmc-dev:developfrom
pshriwise:dynamic-sp-files

Conversation

@pshriwise

@pshriwise pshriwise commented Mar 8, 2026

Copy link
Copy Markdown
Collaborator

Another QOL upgrade here. It's been bothering me for a while that you can't more cleanly open a new statepoint file with one already open. Feels clunky for it to fail and force the user to close the existing file manually. This takes care of that by providing a notice if one is open and optionally opening the file open dialog anyway after confirmation.

@pshriwise

Copy link
Copy Markdown
Collaborator Author

The test code is fully codex-generated. It's a lot of line changes and while I'd like to have more testing here it's not the type of testing I'm primarily concerned with. Happy to remove it if we think that's best.

@paulromano paulromano left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for delay on this; thanks!

@paulromano paulromano merged commit b5113a3 into openmc-dev:develop Jul 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants