diff options
author | Lluis Sanchez <lluis@xamarin.com> | 2019-07-05 20:20:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-05 20:20:23 +0300 |
commit | 0474d6fcef94939cfa49756e794ec2b08199139d (patch) | |
tree | e5a1901fe52564bdaed3a1331df1550672115f0c | |
parent | 999033766ca6a399f5466f9a61b7b9c19b303f3e (diff) | |
parent | 0720f4b73eaa518cffc9022e56ffc06a70bb31af (diff) |
Merge pull request #8134 from mono/backport-pr-4909-to-release-8.2
[release-8.2] [Ide] Add WelcomeWindow shown/hidden events
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.WelcomePage/WelcomePageService.cs | 5 |
1 files changed, 5 insertions, 0 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 8699251b76..dd003cab69 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.WelcomePage/WelcomePageService.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.WelcomePage/WelcomePageService.cs @@ -51,6 +51,8 @@ namespace MonoDevelop.Ide.WelcomePage public static event EventHandler WelcomePageShown; public static event EventHandler WelcomePageHidden; + public static event EventHandler WelcomeWindowShown; + public static event EventHandler WelcomeWindowHidden; internal static async Task Initialize (bool hideWelcomePage) { @@ -116,6 +118,7 @@ namespace MonoDevelop.Ide.WelcomePage { if (WelcomeWindowProvider != null) { await WelcomeWindowProvider.HideWindow (); + WelcomeWindowHidden?.Invoke (WelcomeWindow, EventArgs.Empty); } else { HideWelcomePage (true); } @@ -164,6 +167,8 @@ namespace MonoDevelop.Ide.WelcomePage await WelcomeWindowProvider.ShowWindow (options); visible = true; + WelcomeWindowShown?.Invoke (WelcomeWindow, EventArgs.Empty); + return true; } } |