Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Commit 9481bff

Browse files
ketttYmonojenkins
authored andcommitted
Disable command during debugging
1 parent daeb98d commit 9481bff

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/BreakpointPad.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,12 @@ protected void OnProperties ()
218218
}
219219
}
220220

221+
[CommandUpdateHandler (LocalCommands.Properties)]
222+
protected void OnUpdateProperties (CommandInfo info)
223+
{
224+
info.Enabled = !DebuggingService.IsDebugging && tree.Selection.CountSelectedRows () == 1 ;
225+
}
226+
221227
string GetIconId (BreakEvent bp)
222228
{
223229
if (bp is Catchpoint)
@@ -323,7 +329,6 @@ protected void OnDeleted ()
323329
}
324330

325331
[CommandUpdateHandler (LocalCommands.GoToFile)]
326-
[CommandUpdateHandler (LocalCommands.Properties)]
327332
protected void UpdateBpCommand (CommandInfo cmd)
328333
{
329334
cmd.Enabled = tree.Selection.CountSelectedRows () == 1;

0 commit comments

Comments
 (0)