aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/update.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/update.rs b/src/gui/update.rs
index d3eb459..372fb24 100644
--- a/src/gui/update.rs
+++ b/src/gui/update.rs
@@ -207,7 +207,9 @@ fn refresh(app: &App, dates: &HashSet<NaiveDate>) {
event::repetitions_between(&app.recurring_events, app.start_date, app.end_date);
for date in dates {
- calendar::refresh_date(app, *date, &repetitions)
+ if date >= &app.start_date && date <= &app.end_date {
+ calendar::refresh_date(app, *date, &repetitions)
+ }
}
}