adapt to latest iced (1c1bee6)
This commit is contained in:
parent
6844470500
commit
cd9d710d14
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user