diff --git a/src/main.rs b/src/main.rs index b2aac75..be9c5f1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,7 +3,8 @@ mod app; mod ui; mod model; -use app::CalendarApp; +use app::{CalendarApp, Message}; +use iced::Task; use std::path; use clap::Parser; use log::info; @@ -62,7 +63,9 @@ pub fn main() -> iced::Result { }).collect() }; - let app_factory = move || { CalendarApp::with_files(calendar_files.clone())}; + let app_factory = move || { + (CalendarApp::with_files(calendar_files.clone()), Task::none()) + }; iced::application("Calendar", CalendarApp::update, CalendarApp::view).run_with(app_factory) }