Skip to content

Restore plugin panel placement when reopening CurveMole - #48

Merged
SebRoLENS merged 1 commit into
mainfrom
fix/restore-plugin-panel-layout
Sep 16, 2026
Merged

SebRoLENS merged 1 commit into
mainfrom
fix/restore-plugin-panel-layout

Conversation

@SebRoLENS

Copy link
Copy Markdown
Owner

Plugin panels auto-open on a queued callback after the main window restores its layout. Their saved placement was therefore ignored and each panel was added at its default position again.

Restore late-created docks with QMainWindow.restoreDockWidget, using the default right-side placement and size only when no saved state exists. This applies to all plugin panels and keeps plugin-specific behavior out of the application core.

Regression coverage exercises the real PluginHost auto-show callback across saveState/restoreState for left, bottom, tabbed and floating layouts, including floating geometry. All four cases fail before the fix and pass afterward.

Validation: ruff check . passed; pytest: 299 passed, 1 Windows-only test skipped. This fixes the application dock host, so it requires a CurveMole update.

Signed-off-by: Codex <codex@openai.com>
@SebRoLENS
SebRoLENS merged commit 92d39f5 into main Sep 16, 2026
11 checks 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.

1 participant