mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
[egui] fix build without "with_serde" feature
This commit is contained in:
@@ -144,6 +144,7 @@ impl app::App for DemoApp {
|
|||||||
self.ui(ui, web_location_hash);
|
self.ui(ui, web_location_hash);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "with_serde")]
|
||||||
fn on_exit(&mut self, storage: &mut dyn app::Storage) {
|
fn on_exit(&mut self, storage: &mut dyn app::Storage) {
|
||||||
app::set_value(storage, app::APP_KEY, self);
|
app::set_value(storage, app::APP_KEY, self);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user