Skip to content

Commit beeb77c

Browse files
committed
Fixed Update was called twice.
1 parent 5b74442 commit beeb77c

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

UI/HotSpotTextBox.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,6 @@ private void OnCommit()
108108
{
109109
hotSpot.Text = Text.Trim();
110110

111-
try
112-
{
113-
hotSpot.Node.Update(hotSpot);
114-
}
115-
catch (Exception ex)
116-
{
117-
Program.Logger.Log(ex);
118-
}
119-
120111
Committed?.Invoke(this, EventArgs.Empty);
121112

122113
Visible = false;

UI/MemoryViewControl.cs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -572,10 +572,17 @@ private void editBox_Committed(object sender, EventArgs e)
572572
return;
573573
}
574574

575-
var hotspot = hotspotTextBox.HotSpot;
576-
if (hotspot != null)
575+
var hotSpot = hotspotTextBox.HotSpot;
576+
if (hotSpot != null)
577577
{
578-
hotspot.Node.Update(hotspot);
578+
try
579+
{
580+
hotSpot.Node.Update(hotSpot);
581+
}
582+
catch (Exception ex)
583+
{
584+
Program.Logger.Log(ex);
585+
}
579586

580587
Invalidate();
581588
}

0 commit comments

Comments
 (0)