Skip to content

Commit

Permalink
Potential temporary data loss during migration of tag list fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
WetHat committed Apr 9, 2022
1 parent 0a2b589 commit fc87e98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OneNoteTaggingKit/Connect.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ public ConnectTaggingKitAddin() {

string knownTags = Properties.Settings.Default.GetPreviousVersion("KnownTags") as string;
if (knownTags != null) {
Properties.Settings.Default.KnownTagsCollection.Clear();
var tags = new PageTagSet(knownTags, TagFormat.AsEntered);
Properties.Settings.Default.KnownTagsCollection.AddRange((from t in tags select t.ToString()).ToArray());
}
Expand Down Expand Up @@ -76,6 +75,7 @@ public void OnAddInsUpdate(ref Array custom) {
/// </param>
public void OnBeginShutdown(ref Array custom) {
TraceLogger.Log(TraceCategory.Info(), "Beginning {0} shutdown; Arguments '{1}'", Properties.Resources.TaggingKit_About_Appname, custom);
Properties.Settings.Default.Save();
if (_dialogmanager != null) {
_dialogmanager.Dispose();
_dialogmanager = null;
Expand Down

0 comments on commit fc87e98

Please sign in to comment.