Skip to content

Commit

Permalink
No possible multiple enumerations while loading shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
gablm committed Mar 6, 2024
1 parent b29cca5 commit d21d348
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,7 @@ public static void LoadKbShortcuts()
var missingKeys = DefaultShortcutList.Keys.Except(resultList.Keys);
var deprecatedKeys = resultList.Keys.Except(DefaultShortcutList.Keys);

// ReSharper disable PossibleMultipleEnumeration
saveAfterLoad = saveAfterLoad || missingKeys.Any() || deprecatedKeys.Any();

foreach (string key in missingKeys)
Expand Down

0 comments on commit d21d348

Please sign in to comment.