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:
authorRodrigo Moya <rodrigo.moya@xamarin.com>2019-02-26 12:49:23 +0300
committerRodrigo Moya <rodrigo.moya@xamarin.com>2019-02-26 12:49:23 +0300
commitca5e802f235c4df71248c8042a1cf4122953a42b (patch)
treeee8f19b96d27e2d381459d79169f8fee249e18b2 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands
parent57b6c39aa89e0d8d4259ab0376e9c2874960c6ce (diff)
[Ide] Disable "View full screen" command when main window is not visible
Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/801906
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ViewCommands.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ViewCommands.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ViewCommands.cs
index 4e5121d2b4..eb7b7d43d9 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ViewCommands.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ViewCommands.cs
@@ -222,6 +222,7 @@ namespace MonoDevelop.Ide.Commands
info.Text = IdeApp.Workbench.FullScreen
? GettextCatalog.GetString ("Exit Full Screen")
: GettextCatalog.GetString ("Enter Full Screen");
+ info.Enabled = IdeApp.Workbench.RootWindow.Visible && !WelcomePage.WelcomePageService.WelcomeWindowVisible;
} else if (Platform.IsWindows) {
//this is currently a no-op on Windows as it's broken, so hide it
info.Visible = info.Enabled = false;