Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorKeting Yang <ketyang@microsoft.com>2019-12-28 00:05:34 +0300
committermonojenkins <jo.shields+jenkins@xamarin.com>2020-01-21 21:57:16 +0300
commit9481bffefecbe104982bc97ae91ca8986cae571f (patch)
tree3b118507e650486e7c25e80268dab1afc692e191 /main
parentdaeb98d1f059f27c8afd81aafe0a568b9fdb5c71 (diff)
Disable command during debugging
Diffstat (limited to 'main')
-rw-r--r--main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/BreakpointPad.cs7
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;