Hyperlinks not working on Windows with request_repaint_after
- Dominant language
- Rust
- Stars
- 30.6k
- Forks
- 2.1k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 67
Description
**Describe the bug**
When clicking on an hyperlink on Windows, on version `0.19.0`, I'm getting the following error:
```
thread 'main' panicked at 'either event handler is re-entrant (likely), or no event handler is registered (very unlikely)', \vendor\winit\src\platform_impl\windows\event_loop\runner.rs:242:18
```
**To Reproduce**
Create an agui app with an hyperlink, call request_repaint_after, and click it:
```
fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) {
CentralPanel::default().show(ctx, |ui| {
let text = "Google";
let url = "https://www.google.com";
let link = Hyperlink::from_label_and_url(text, url);
ui.add(link);
});
ctx.request_repaint_after(Duration::from_millis(100));
}
```
Contributor guide
Assessment
This issue has not been assessed yet.