Skip to content

fix: settings Apply/OK buttons not saving changes#31

Merged
guodong-sq merged 3 commits intomainfrom
guodong/fix-plugin-settings
Mar 10, 2026
Merged

fix: settings Apply/OK buttons not saving changes#31
guodong-sq merged 3 commits intomainfrom
guodong/fix-plugin-settings

Conversation

@guodong-sq
Copy link
Copy Markdown
Collaborator

Summary

  • Settings changes were not persisted — Apply button always greyed out, OK didn't save
  • Root cause: bindSelected(::localField) binds to local Kotlin properties, but the UI DSL only writes to them when panel.apply() is called — isModified() compared never-updated local fields against settings, always returning false
  • Fix: bind directly to settings.state::property and delegate isModified()/apply()/reset() to DialogPanel

Bind checkboxes directly to settings.state properties and delegate
isModified/apply/reset to DialogPanel. The previous approach used
intermediate local fields that were never updated by the UI bindings,
so isModified() always returned false.

Co-authored-by: Claude Code <noreply@anthropic.com>
Ai-assisted: true
guodong-sq and others added 2 commits March 10, 2026 02:14
Push a tag like `plugin-v0.1.0` to build the plugin, run tests,
and create a GitHub release with the installable ZIP artifact.

Co-authored-by: Claude Code <noreply@anthropic.com>
Ai-assisted: true
This reverts commit 0128706.

Co-authored-by: Claude Code <noreply@anthropic.com>
Ai-assisted: true
@guodong-sq guodong-sq merged commit 3adce4f into main Mar 10, 2026
5 checks passed
@guodong-sq guodong-sq deleted the guodong/fix-plugin-settings branch March 10, 2026 06:16
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