andrewdavidmackenzie / pigg

Raspberry Pi GPIO GUI
Apache License 2.0
205 stars 8 forks source link

Close Pop-Up Menu on Button Click #233

Open sundaram123krishnan opened 3 months ago

sundaram123krishnan commented 3 months ago

Is your feature request related to a problem? Please describe. The pop-menu does not automatically close when it is clicked, leading to a less intuitive user experience.

Describe the solution you'd like Ensure the pop-menu closes when it is clicked to provide a smoother and more intuitive interaction.

Describe alternatives you've considered Currently, the pop-menu closes when it loses focus.

Additional context Currently, this behavior cannot be achieved in the iced_aw library. This feature might require opening a pull request to address this limitation.

sundaram123krishnan commented 3 months ago

I recently opened a pull request in the iced_aw repository, which has been merged. This feature may be included in the next release of iced_aw.

andrewdavidmackenzie commented 3 months ago

Able to fix this in 0.4.0?

sundaram123krishnan commented 3 months ago

If we use the git version of iced_aw instead of crates.io , then definitely we can have this functionality. Or, wait for their next release :slightly_smiling_face: