Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…alendarSync into release

Fixes #1394
  • Loading branch information
phw198 committed Mar 27, 2022
2 parents 39deab5 + 01cb854 commit 86f43d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
11 changes: 4 additions & 7 deletions src/OutlookGoogleCalendarSync/SettingsStore/Upgrade.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
using System;
using log4net;
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using log4net;
using System.Windows.Forms;
using System.Xml.Linq;

namespace OutlookGoogleCalendarSync.SettingsStore {
public static class Upgrade {
private static readonly ILog log = LogManager.GetLogger(typeof(Upgrade));

//OGCS releases that require the settings XML to be upgraded
private static Int32 multipleCalendars = Program.VersionToInt("2.9.1.1");
private static Int32 multipleCalendars = Program.VersionToInt("2.9.3.0");

private static String settingsVersion;
private static Int32 settingsVersionNum;
Expand Down
3 changes: 2 additions & 1 deletion src/OutlookGoogleCalendarSync/Sync/Calendar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,8 @@ private SyncResult synchronize() {
try {
#region Read Outlook items
console.Update("Scanning Outlook calendar...");
outlookEntries = OutlookOgcs.Calendar.Instance.GetCalendarEntriesInRange(null, false);
OutlookOgcs.Calendar.Instance.IOutlook.UseOutlookCalendar(OutlookOgcs.Calendar.Instance.IOutlook.GetFolderByID(Sync.Engine.Calendar.Instance.Profile.UseOutlookCalendar.Id));
outlookEntries = OutlookOgcs.Calendar.Instance.GetCalendarEntriesInRange(Sync.Engine.Calendar.Instance.Profile, false);
console.Update(outlookEntries.Count + " Outlook calendar entries found.", Console.Markup.sectionEnd, newLine: false);

if (Sync.Engine.Instance.CancellationPending) return SyncResult.UserCancelled;
Expand Down

0 comments on commit 86f43d6

Please sign in to comment.