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

Unwrap in menu overlay causes app to crash #301

Open
andrewdavidmackenzie opened this issue Nov 14, 2024 · 1 comment
Open

Unwrap in menu overlay causes app to crash #301

andrewdavidmackenzie opened this issue Nov 14, 2024 · 1 comment

Comments

@andrewdavidmackenzie
Copy link

In my app, some hardware events cause additions to / removals from menus asynchronously.

It seems that when that happens and the menu is open, a crash happens.

It seems to be this Option unwrap:

https://github.com/iced-rs/iced_aw/blob/main/src/widget/menu/menu_bar_overlay.rs#L90

@genusistimelord
Copy link
Collaborator

We may need to remove the unwrap and replace it with a full if let statement for menu. that should fix the error.

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

No branches or pull requests

2 participants