1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-29 04:40:03 -04:00

Don't request discard, repaint is enough

This commit is contained in:
Lucas Meurer
2026-08-21 11:53:46 +02:00
parent a7f5fb35b3
commit c4260edc9c

View File

@@ -32,9 +32,8 @@ impl Ui {
response.widget_state()
} else {
// We don't know the state of the widget yet, so we would style it wrong.
// Discard this pass and style it correctly in the next one.
self.ctx()
.request_discard("Widget style depends on a widget response we don't have yet");
// It will be styled correctly on next frame.
self.ctx().request_repaint();
WidgetState::default()
};