-
Notifications
You must be signed in to change notification settings - Fork 40
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
DropdownSelect weird behavior #115
Comments
Is the dropdown a subwindow? You could also try turning up the log level to trace to see if you get any more info. |
I don't know if the dropdown is a sub window as I did not program it. However, if you meant whether the dropdown is ON a sub window then yes it is on a sub window. |
Did you manage to get any more info from setting log_level to trace? or is there some code that exhibits this behavior that you can share? |
Regarding logging it's not easy to enable because in my projects logging is redirected to a custom log backend. Unfortunately druid uses Regarding code, that is more feasible. Let me just try to extract minimal reproducible code for the sub window. EDIT1: There's actually much worse the example itself is completely broken under macOS! |
This feels like a bug to me, but I'm not sure how to go about reproducing it. I'll see if others have any ideas. |
To reproduce that bug: easy: run the basic select example on macOS Monterey 12.3.1 (Intel) after having forced |
About the insta-close problem I've isolated the code in the widget which causes the entire application to terminate: ext.submit_command(CLOSE_WINDOW, (), ctx.window_id())
.unwrap(); File: EDIT: Here are the specs of the Mac I've used to reproduce the bugs in case it matters: |
Ah this might be because druid has changed behavior since the widget was made. Anyone know if this is the case? |
I've added a
DropdownSelect
to my app with the following code:Where
State
is the application main state,Preferences
is an inner struct inState
,Theme
is an enum with 2 variants (Light and Dark).Strangely this code works and gives a DropdownSelect where I can select a different item and also updates however when I click on the dropdown itself (to close it, leaving it unchanged) the entire application shuts down like if it crashed but nothing appears in console apart from an exit code of 0. Additionally I can confirm that somehow the widget caused the main rendering/event loop to exit and the main function actually returned...
Is this expected behavior? If it is expected, is there any way to remove this behavior?
The text was updated successfully, but these errors were encountered: