Skip to content

Commit

Permalink
Update epi_integration.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic committed May 12, 2024
1 parent 2c5bba3 commit f82c3f4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions crates/eframe/src/native/epi_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,18 +249,13 @@ impl EpiIntegration {
) -> EventResponse {
crate::profile_function!(egui_winit::short_window_event_description(event));

use winit::event::{ElementState, MouseButton, WindowEvent};
use winit::event::WindowEvent;

match event {
WindowEvent::Destroyed => {
log::debug!("Received WindowEvent::Destroyed");
self.close = true;
}
WindowEvent::MouseInput {
button: MouseButton::Left,
state: ElementState::Pressed,
..
} => {}
WindowEvent::ThemeChanged(winit_theme) if self.follow_system_theme => {
let theme = theme_from_winit_theme(*winit_theme);
self.frame.info.system_theme = Some(theme);
Expand Down

0 comments on commit f82c3f4

Please sign in to comment.