Skip to content

Commit

Permalink
Fix for issue microsoft#21462
Browse files Browse the repository at this point in the history
Blocking endless loop on property change
  • Loading branch information
donlaci committed Oct 31, 2022
1 parent b9ccb9f commit 4e9dd2e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ private void ColorHistory_CollectionChanged(object sender, System.Collections.Sp
if (!_loadingColorsHistory)
{
var settings = _settingsUtils.GetSettingsOrDefault<ColorPickerSettings>(ColorPickerModuleName);
ColorHistory.CollectionChanged -= ColorHistory_CollectionChanged;
settings.Properties.ColorHistory = ColorHistory.ToList();
ColorHistory.CollectionChanged += ColorHistory_CollectionChanged;
settings.Save(_settingsUtils);
}
}
Expand Down

0 comments on commit 4e9dd2e

Please sign in to comment.