I dunno
This commit is contained in:
@@ -85,7 +85,9 @@ impl Damus<'_> {
|
|||||||
//return eframe::get_value(storage, eframe::APP_KEY).unwrap_or_default();
|
//return eframe::get_value(storage, eframe::APP_KEY).unwrap_or_default();
|
||||||
//}
|
//}
|
||||||
|
|
||||||
Default::default()
|
let mut d: Self = Default::default();
|
||||||
|
d.add_test_events();
|
||||||
|
d
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ fn main() {
|
|||||||
eframe::run_native(
|
eframe::run_native(
|
||||||
"Damus Desktop",
|
"Damus Desktop",
|
||||||
native_options,
|
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(
|
eframe::start_web(
|
||||||
"the_canvas_id", // hardcode it
|
"the_canvas_id", // hardcode it
|
||||||
web_options,
|
web_options,
|
||||||
Box::new(|cc| Box::new(Damus::new())),
|
Box::new(|_cc| Box::new(Damus::new())),
|
||||||
)
|
)
|
||||||
.expect("failed to start eframe");
|
.expect("failed to start eframe");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user