Remove adding test roll on first startup
This commit is contained in:
parent
41d8dac6ec
commit
ecea11ad12
10
src/main.rs
10
src/main.rs
@ -34,15 +34,7 @@ struct MyApp {
|
|||||||
|
|
||||||
impl MyApp {
|
impl MyApp {
|
||||||
fn new(cc: &eframe::CreationContext<'_>) -> Self {
|
fn new(cc: &eframe::CreationContext<'_>) -> Self {
|
||||||
let rolls = eframe::get_value(cc.storage.unwrap(), "rolls").unwrap_or_else(|| {
|
let rolls = eframe::get_value(cc.storage.unwrap(), "rolls").unwrap_or_default();
|
||||||
vec![Roll::new(
|
|
||||||
"00001".into(),
|
|
||||||
"Test".into(),
|
|
||||||
"Testing".into(),
|
|
||||||
Local::now().date_naive(),
|
|
||||||
24,
|
|
||||||
)]
|
|
||||||
});
|
|
||||||
Self {
|
Self {
|
||||||
state: AppState { rolls },
|
state: AppState { rolls },
|
||||||
roll_views: Vec::new(),
|
roll_views: Vec::new(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user