Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a UX for plugins to register a configuration dialog within the plugin manager popup #5955

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

nirvn
Copy link
Member

@nirvn nirvn commented Jan 26, 2025

Until now, plugins wanting to offer a configuration dialog had to rely on adding a button somewhere in QField, which creates clutter for no real reason when configuration is a once in a blue moon.

To remedy to the situation, this PR empowers plugin authors into adding a mechanism to trigger a configuration dialog. When loading a plugin, the plugin manager will now check for a function configure() {} declaration in the root item of the plugin in main.qml.

Screencast:

Screencast.From.2025-01-26.18-14-20.mp4

@mbernasocchi , as discussed. We can now have a clutter-free Ask AI! :)

@qfield-fairy
Copy link
Collaborator

@mbernasocchi
Copy link
Member

From a plugin dev point of view this works great!

@nirvn nirvn merged commit 4839e6e into master Jan 27, 2025
25 checks passed
@nirvn nirvn deleted the plugin_configure branch January 27, 2025 03:00
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.

3 participants