Remove adding test roll on first startup

This commit is contained in:
pjht 2023-05-30 15:04:42 -05:00
parent 41d8dac6ec
commit ecea11ad12
Signed by: pjht
GPG Key ID: CA239FC6934E6F3A

View File

@ -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(),