[egui] fix build without "with_serde" feature
This commit is contained in:
parent
fae81ca386
commit
42c94f9db9
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue