Skip to content

Commit

Permalink
Initialise ExcludedByCategory within FilterCalendarEntries()
Browse files Browse the repository at this point in the history
Partial revert of 50e6725
#1989
  • Loading branch information
phw198 committed Nov 3, 2024
1 parent f899d91 commit 04c2f11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/OutlookGoogleCalendarSync/Outlook/OutlookCalendar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public enum Service {
public Outlook.EphemeralProperties EphemeralProperties = new EphemeralProperties();

/// <summary>Outlook Appointment excluded through user config <Appt.EntryId, Event.Id></Appt.EntryId></summary>
public Dictionary<String, String> ExcludedByCategory { get; set; }
public Dictionary<String, String> ExcludedByCategory { get; private set; }

public Calendar() {
InstanceConnect = true;
Expand Down Expand Up @@ -144,6 +144,7 @@ public List<AppointmentItem> FilterCalendarEntries(SettingsStore.Calendar profil

List<AppointmentItem> result = new List<AppointmentItem>();
Items OutlookItems = null;
ExcludedByCategory = new();

if (profile is null)
profile = Settings.Profile.InPlay();
Expand Down
1 change: 0 additions & 1 deletion src/OutlookGoogleCalendarSync/Sync/Calendar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,6 @@ private SyncResult synchronize() {

List<AppointmentItem> outlookEntries = null;
List<Event> googleEntries = null;
Ogcs.Outlook.Calendar.Instance.ExcludedByCategory = new Dictionary<String, String>();
Ogcs.Google.Calendar.Instance.ExcludedByColour = new Dictionary<String, String>();
Ogcs.Google.Calendar.Instance.ExcludedByConfig = new List<String>();
if (!Ogcs.Google.Calendar.IsInstanceNull)
Expand Down

0 comments on commit 04c2f11

Please sign in to comment.