diff --git a/src/OutlookGoogleCalendarSync/Outlook/OutlookCalendar.cs b/src/OutlookGoogleCalendarSync/Outlook/OutlookCalendar.cs index 7716985..13f02c3 100644 --- a/src/OutlookGoogleCalendarSync/Outlook/OutlookCalendar.cs +++ b/src/OutlookGoogleCalendarSync/Outlook/OutlookCalendar.cs @@ -63,7 +63,7 @@ public enum Service { public Outlook.EphemeralProperties EphemeralProperties = new EphemeralProperties(); /// Outlook Appointment excluded through user config - public Dictionary ExcludedByCategory { get; set; } + public Dictionary ExcludedByCategory { get; private set; } public Calendar() { InstanceConnect = true; @@ -144,6 +144,7 @@ public List FilterCalendarEntries(SettingsStore.Calendar profil List result = new List(); Items OutlookItems = null; + ExcludedByCategory = new(); if (profile is null) profile = Settings.Profile.InPlay(); diff --git a/src/OutlookGoogleCalendarSync/Sync/Calendar.cs b/src/OutlookGoogleCalendarSync/Sync/Calendar.cs index f30d4b8..2a86f12 100644 --- a/src/OutlookGoogleCalendarSync/Sync/Calendar.cs +++ b/src/OutlookGoogleCalendarSync/Sync/Calendar.cs @@ -315,7 +315,6 @@ private SyncResult synchronize() { List outlookEntries = null; List googleEntries = null; - Ogcs.Outlook.Calendar.Instance.ExcludedByCategory = new Dictionary(); Ogcs.Google.Calendar.Instance.ExcludedByColour = new Dictionary(); Ogcs.Google.Calendar.Instance.ExcludedByConfig = new List(); if (!Ogcs.Google.Calendar.IsInstanceNull)