1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 13:20:05 -04:00

Simplify and move CloseRequested

This commit is contained in:
Konkitoman
2023-11-08 08:15:08 +02:00
parent e9b57e624d
commit 9676115e49
5 changed files with 10 additions and 20 deletions

View File

@@ -450,9 +450,7 @@ impl State {
// Things that may require repaint:
WindowEvent::CloseRequested => {
self.egui_input
.events
.push(egui::Event::WindowEvent(egui::WindowEvent::CloseRequested));
self.egui_input.viewport.close_requested = true;
EventResponse {
consumed: true,
repaint: true,