Skip to content

Commit f97a456

Browse files
committed
Improved ShortcutDialog update 5
1 parent 4b5cc8b commit f97a456

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

FlashDevelop/Dialogs/ShortcutDialog.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -455,10 +455,8 @@ void GetConflictItems(ShortcutListItem target)
455455
if (item == target) continue;
456456
if (item.Custom == keys)
457457
{
458-
if (item.HasConflicts) conflicts.AddRange(item.Conflicts);
459-
else conflicts.Add(item);
460-
461-
item.Conflicts = conflicts;
458+
conflicts.Add(item);
459+
item.Conflicts = conflicts;
462460
}
463461
}
464462

@@ -637,6 +635,7 @@ public List<ShortcutListItem> Conflicts
637635
get { return this.conflicts; }
638636
set
639637
{
638+
if (this.conflicts == value) return;
640639
this.conflicts = value;
641640
UpdateItemHighlightFont(this);
642641
}
@@ -666,6 +665,7 @@ public Keys Custom
666665
get { return this.custom; }
667666
set
668667
{
668+
if (this.custom == value) return;
669669
this.custom = value;
670670
this.KeysString = DataConverter.KeysToString(this.custom);
671671
this.SubItems[1].Text = this.KeysString;

0 commit comments

Comments
 (0)