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

egui_glium: run app code outside event loop to fix file dialogs #631

Merged
merged 1 commit into from
Aug 20, 2021

Conversation

emilk
Copy link
Owner

@emilk emilk commented Aug 19, 2021

Previously app code was run from within the event loop which lead to native dialogs (e.g. using nfd2 or rfd) to hang (see rust-windowing/winit#1779).

Now egui_glium polls for events and then runs the app code.

Previously app code was run from within the event loop
which lead to file dialogs (e.g. using nfd2) to hang
(see rust-windowing/winit#1779)

Now egui_glium polls for events and then runs the app code.
@emilk emilk merged commit 04b3921 into master Aug 20, 2021
@emilk emilk deleted the glium-event-loop-change branch August 20, 2021 16:59
mankinskin pushed a commit to mankinskin/egui that referenced this pull request Sep 29, 2021
…k#631)

Previously app code was run from within the event loop
which lead to file dialogs (e.g. using nfd2) to hang
(see rust-windowing/winit#1779)

Now egui_glium polls for events and then runs the app code.
emilk added a commit that referenced this pull request Sep 29, 2021
emilk added a commit that referenced this pull request Sep 30, 2021
* Revert change to winit event loop in egui_glium

This reverts #631

Fixes #755

* Add example of file dialogs and file drag-and-drop

* fix ci
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.

1 participant