diff --git a/OneMoreCalendar/CalendarForm.cs b/OneMoreCalendar/CalendarForm.cs index 634149c6ba..859a5bbc22 100644 --- a/OneMoreCalendar/CalendarForm.cs +++ b/OneMoreCalendar/CalendarForm.cs @@ -111,6 +111,12 @@ private async Task SetMonth(int delta) : date.AddMonths(delta); } + if (date.StartOfMonth() > DateTime.Now.StartOfMonth()) + { + date = DateTime.Now.StartOfMonth(); + return; + } + var endDate = date.EndOfMonth(); var settings = new SettingsProvider();