Skip to content

Commit b3ae602

Browse files
committed
Disable DataTreeControl in Watch Panel while the debugger is running. This avoids some problems, and is also more in line with other IDEs.
1 parent 701e432 commit b3ae602

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

External/Plugins/FlashDebugger/Controls/WatchUI.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ public void Clear()
9292
watchManager.ClearAll();
9393
}
9494

95+
public void Lock()
96+
{
97+
treeControl.Enabled = false;
98+
}
99+
95100
public void UpdateElements()
96101
{
97102
treeControl.Tree.BeginUpdate();

External/Plugins/FlashDebugger/Helpers/MenusHelper.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ public void UpdateMenuState(object sender, DebuggerState state)
272272
{
273273
PanelsHelper.localsUI.TreeControl.Nodes.Clear();
274274
PanelsHelper.stackframeUI.ClearItem();
275+
PanelsHelper.watchUI.Lock();
275276
}
276277
enabled = GetLanguageIsValid();
277278
ToggleBreakPointMenu.Enabled = ToggleBreakPointEnableMenu.Enabled = enabled;

0 commit comments

Comments
 (0)