1786306467
This commit is contained in:
@@ -105,11 +105,7 @@ pub fn apply_calendars(app: &Weak<AppWindow>, entities: Vec<CalendarEvent>) {
|
|||||||
let entities: Vec<CalendarEventData> = entities.iter().map(Into::into).collect::<Vec<_>>();
|
let entities: Vec<CalendarEventData> = entities.iter().map(Into::into).collect::<Vec<_>>();
|
||||||
|
|
||||||
if let Some(event) = &entities.first() {
|
if let Some(event) = &entities.first() {
|
||||||
app.set_next_event_date(slint::format!(
|
app.set_next_event_date(slint::format!("NEXT / {}", event.date.to_uppercase(),));
|
||||||
"NEXT / {} / {}",
|
|
||||||
event.date.to_uppercase(),
|
|
||||||
event.calendar.to_uppercase()
|
|
||||||
));
|
|
||||||
app.set_next_event_time(event.time.clone());
|
app.set_next_event_time(event.time.clone());
|
||||||
app.set_next_event_summary(event.summary.clone());
|
app.set_next_event_summary(event.summary.clone());
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user