Skip to content

Allow configurable menu adapters for third-party backends - #79

Merged
dominicletz merged 1 commit into
mainfrom
feat/configurable-menu-adapter
Aug 2, 2026
Merged

Allow configurable menu adapters for third-party backends#79
dominicletz merged 1 commit into
mainfrom
feat/configurable-menu-adapter

Conversation

@dominicletz

Copy link
Copy Markdown
Collaborator

Summary

  • Honor config :desktop, :menu_adapter in Desktop.Platform.Menu.adapter/1 so packages like desktop_webview can supply their own menu adapter.
  • Accept any adapter module via Desktop.Menu start opts (not only Wx/Json/DBus/Browser).
  • Document the option in FAQ and AGENTS.md.

Test plan

  • mix test.fast / existing menu tests still pass
  • With config :desktop, :menu_adapter, Some.Adapter, Desktop.Platform.Menu.adapter([]) returns that module
  • Without the config, existing Wx/Json/DBus/Browser selection is unchanged

Made with Cursor

Honor config :desktop, :menu_adapter so packages like desktop_webview can plug in without hardcoding Wx/Json/DBus/Browser.

Co-authored-by: Cursor <cursoragent@cursor.com>
@dominicletz
dominicletz merged commit bd0bc3b into main Aug 2, 2026
2 checks passed
@dominicletz
dominicletz deleted the feat/configurable-menu-adapter branch August 2, 2026 05:12
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