diff options
author | Jose Medrano <jose.medrano@microsoft.com> | 2019-05-29 13:49:02 +0300 |
---|---|---|
committer | Jose Medrano <jose.medrano@microsoft.com> | 2019-05-29 19:37:16 +0300 |
commit | 55f211887660a0dc82e3023552ceefacc3ef62b5 (patch) | |
tree | 172d5f5fc50ebbc515f148be3d0c434c19b35e4b /main | |
parent | 216523e6990d82cb074c5fac312e9cfa09947bb0 (diff) |
[GetToCode] Uses hideWelcomePage flag in WelcomePageService
Fixes VSTS #894451
Diffstat (limited to 'main')
3 files changed, 5 insertions, 5 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.WelcomePage/WelcomePageService.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.WelcomePage/WelcomePageService.cs index fc9023b974..28e85dc484 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.WelcomePage/WelcomePageService.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.WelcomePage/WelcomePageService.cs @@ -52,7 +52,7 @@ namespace MonoDevelop.Ide.WelcomePage public static event EventHandler WelcomePageShown; public static event EventHandler WelcomePageHidden; - internal static async Task Initialize () + internal static async Task Initialize (bool hideWelcomePage) { IdeApp.Initialized += (s, args) => { IdeApp.Workbench.RootWindow.Hidden += (sender, e) => { @@ -78,7 +78,7 @@ namespace MonoDevelop.Ide.WelcomePage }; }; - if (HasWindowImplementation) { + if (!hideWelcomePage && HasWindowImplementation) { await Runtime.GetService<DesktopService> (); var commandManager = await Runtime.GetService<CommandManager> (); await ShowWelcomeWindow (new WelcomeWindowShowOptions (false)); diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/Ide.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/Ide.cs index 6fb1fe8fd1..6be545748b 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/Ide.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/Ide.cs @@ -180,7 +180,7 @@ namespace MonoDevelop.Ide } } - public static async Task Initialize (ProgressMonitor monitor) + public static async Task Initialize (ProgressMonitor monitor, bool hideWelcomePage = false) { // Already done in IdeSetup, but called again since unit tests don't use IdeSetup. DispatchService.Initialize (); @@ -206,7 +206,7 @@ namespace MonoDevelop.Ide } Counters.Initialization.Trace ("Initializing WelcomePage service"); - WelcomePage.WelcomePageService.Initialize ().Ignore (); + WelcomePage.WelcomePageService.Initialize (hideWelcomePage).Ignore (); // Pump the UI thread to make the start window visible diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs index bfc0a30424..752e11f5be 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs @@ -279,7 +279,7 @@ namespace MonoDevelop.Ide Counters.Initialization.Trace ("Initializing IdeApp"); hideWelcomePage = options.NoStartWindow || startupInfo.HasFiles || IdeApp.Preferences.StartupBehaviour.Value != OnStartupBehaviour.ShowStartWindow; - await IdeApp.Initialize (monitor); + await IdeApp.Initialize (monitor, hideWelcomePage); IdeStartupTracker.StartupTracker.MarkSection ("AppInitialization"); |