Repository navigation
Commit dfb2cf3
Builder: stop re-showing every property panel as a job delivers results (#111)
Opening a finished calculation shows three panels; leaving one open
while its job finishes showed all of them, the viewer buried in
overlays. The difference was the tell, and it is exactly what was
reported twice.
addPropertyPanel() has two paths. For a panel that does not exist yet
it creates one and applies defaultShownPanels -- Calculation Summary,
Energies, MOs -- hiding the rest. For one that already exists it called
pinfo.Show(), unconditionally.
updatePropertyMenus() runs again every time the calculation gains a
property, and a running job gains them one at a time. So the first pass
created the panels and hid most of them, and every pass after that took
the other branch and re-showed all of them. Reopening the calculation
later went back through the creation path, which is why it then looked
correct.
The forced show has no caller that needs it. This function's job is to
make sure the panel exists and has a Property-menu entry; the user
showing or hiding one goes through OnPropertyMenuClick(), which sets the
pane's visibility itself, and the layout-cache caller restores saved
visibility with LoadPaneInfo() immediately afterwards. Leaving the pane
alone is also what lets a panel the user closed stay closed while a job
is still running, which it previously could not.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFMUNbw2UpRPmgsqviAowb1 parent 1e0ef99 commit dfb2cf3
1 file changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4624 | 4624 | | |
4625 | 4625 | | |
4626 | 4626 | | |
4627 | | - | |
| 4627 | + | |
| 4628 | + | |
| 4629 | + | |
| 4630 | + | |
| 4631 | + | |
| 4632 | + | |
| 4633 | + | |
| 4634 | + | |
| 4635 | + | |
| 4636 | + | |
| 4637 | + | |
| 4638 | + | |
| 4639 | + | |
| 4640 | + | |
| 4641 | + | |
| 4642 | + | |
| 4643 | + | |
4628 | 4644 | | |
4629 | 4645 | | |
4630 | 4646 | | |
| |||
0 commit comments