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 {
|
||||
fn new(cc: &eframe::CreationContext<'_>) -> Self {
|
||||
let rolls = eframe::get_value(cc.storage.unwrap(), "rolls").unwrap_or_else(|| {
|
||||
vec![Roll::new(
|
||||
"00001".into(),
|
||||
"Test".into(),
|
||||
"Testing".into(),
|
||||
Local::now().date_naive(),
|
||||
24,
|
||||
)]
|
||||
});
|
||||
let rolls = eframe::get_value(cc.storage.unwrap(), "rolls").unwrap_or_default();
|
||||
Self {
|
||||
state: AppState { rolls },
|
||||
roll_views: Vec::new(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user