Skip to content

Commit

Permalink
Fix #423 Call destroy on egui painter
Browse files Browse the repository at this point in the history
  • Loading branch information
asny committed Dec 24, 2023
1 parent ad76d31 commit 7c1ecd0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gui/egui_gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,12 @@ impl GUI {
}
}

impl Drop for GUI {
fn drop(&mut self) {
self.painter.borrow_mut().destroy();
}
}

impl From<&Key> for egui::Key {
fn from(key: &Key) -> Self {
use crate::control::Key::*;
Expand Down

0 comments on commit 7c1ecd0

Please sign in to comment.