This commit is contained in:
William Casarin
2022-12-01 07:20:58 -08:00
parent 641c339682
commit 3f64dedf76
2 changed files with 5 additions and 3 deletions

View File

@@ -85,7 +85,9 @@ impl Damus<'_> {
//return eframe::get_value(storage, eframe::APP_KEY).unwrap_or_default();
//}
Default::default()
let mut d: Self = Default::default();
d.add_test_events();
d
}
}

View File

@@ -13,7 +13,7 @@ fn main() {
eframe::run_native(
"Damus Desktop",
native_options,
Box::new(|cc| Box::new(Damus::new())),
Box::new(|_cc| Box::new(Damus::new())),
);
}
@@ -30,7 +30,7 @@ fn main() {
eframe::start_web(
"the_canvas_id", // hardcode it
web_options,
Box::new(|cc| Box::new(Damus::new())),
Box::new(|_cc| Box::new(Damus::new())),
)
.expect("failed to start eframe");
}