diff options
author | Keting Yang <ketyang@microsoft.com> | 2019-12-28 00:05:34 +0300 |
---|---|---|
committer | monojenkins <jo.shields+jenkins@xamarin.com> | 2020-01-21 21:57:16 +0300 |
commit | 9481bffefecbe104982bc97ae91ca8986cae571f (patch) | |
tree | 3b118507e650486e7c25e80268dab1afc692e191 /main | |
parent | daeb98d1f059f27c8afd81aafe0a568b9fdb5c71 (diff) |
Disable command during debugging
Diffstat (limited to 'main')
-rw-r--r-- | main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/BreakpointPad.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/BreakpointPad.cs b/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/BreakpointPad.cs index 121c4f12fd..1a9344dbe6 100644 --- a/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/BreakpointPad.cs +++ b/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/BreakpointPad.cs @@ -218,6 +218,12 @@ namespace MonoDevelop.Debugger } } + [CommandUpdateHandler (LocalCommands.Properties)] + protected void OnUpdateProperties (CommandInfo info) + { + info.Enabled = !DebuggingService.IsDebugging && tree.Selection.CountSelectedRows () == 1 ; + } + string GetIconId (BreakEvent bp) { if (bp is Catchpoint) @@ -323,7 +329,6 @@ namespace MonoDevelop.Debugger } [CommandUpdateHandler (LocalCommands.GoToFile)] - [CommandUpdateHandler (LocalCommands.Properties)] protected void UpdateBpCommand (CommandInfo cmd) { cmd.Enabled = tree.Selection.CountSelectedRows () == 1; |