-
Notifications
You must be signed in to change notification settings - Fork 112
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
Comments
We may need to remove the unwrap and replace it with a full if let statement for menu. that should fix the error. |
I now have another (more frequent, less avoidable) case where this crashes my app. Would you be open to a PR avoiding it? |
"Thar she blows...." #307 I fixed the 2 or 3 that were causing my particular crash, plus others I could see in the file. To fix completely might require some restructuring of those methods. Idea goal would be to remove the allow of unwraps at the top of the file. If you review the PR with comments, I am willing to address those comments and get the PR into a state for merging. |
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
The text was updated successfully, but these errors were encountered: