From ecea11ad12d6b851eec52fb916ecd4c592c8e0a3 Mon Sep 17 00:00:00 2001 From: pjht Date: Tue, 30 May 2023 15:04:42 -0500 Subject: [PATCH] Remove adding test roll on first startup --- src/main.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/main.rs b/src/main.rs index 5f15150..061895f 100644 --- a/src/main.rs +++ b/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(),