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
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs
index 4d4df70d59..490c249e07 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs
@@ -455,19 +455,21 @@ namespace MonoDevelop.Components.Commands
/// <summary>
/// Disables all commands
/// </summary>
- public void LockAll ()
+ public bool LockAll ()
{
guiLock++;
if (guiLock == 1) {
foreach (ICommandBar toolbar in toolbars)
toolbar.SetEnabled (false);
- }
+ return true;
+ } else
+ return false;
}
/// <summary>
/// Unlocks the command manager
/// </summary>
- public void UnlockAll ()
+ public bool UnlockAll ()
{
if (guiLock == 1) {
foreach (ICommandBar toolbar in toolbars)
@@ -476,6 +478,7 @@ namespace MonoDevelop.Components.Commands
if (guiLock > 0)
guiLock--;
+ return guiLock == 0;
}
/// <summary>