diff options
| author | Michael <[email protected]> | 2017-04-15 20:25:05 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-04-15 20:25:05 -0400 |
| commit | 1db8c4a00d102c5a184f9e4da29e3051a67a756b (patch) | |
| tree | 8a65d4ff1f1808f5078df03cd9a754bcd9948484 | |
| parent | 56e216a430694d86c242df763484deba682f3302 (diff) | |
| download | shiftos_thereturn-1db8c4a00d102c5a184f9e4da29e3051a67a756b.tar.gz shiftos_thereturn-1db8c4a00d102c5a184f9e4da29e3051a67a756b.tar.bz2 shiftos_thereturn-1db8c4a00d102c5a184f9e4da29e3051a67a756b.zip | |
Hide AL when desktop items are clicked
| -rw-r--r-- | ShiftOS.WinForms/WinformsDesktop.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/WinformsDesktop.cs b/ShiftOS.WinForms/WinformsDesktop.cs index d50be53..cd74a6b 100644 --- a/ShiftOS.WinForms/WinformsDesktop.cs +++ b/ShiftOS.WinForms/WinformsDesktop.cs @@ -58,6 +58,11 @@ namespace ShiftOS.WinForms public WinformsDesktop() { InitializeComponent(); + this.Click += (o, a) => + { + HideAppLauncher(); + }; + SetupControl(desktoppanel); Shiftorium.Installed += () => { //Only if the DevX Legions story hasn't been experienced yet. @@ -284,6 +289,7 @@ namespace ShiftOS.WinForms form.BringToFront(); focused = form; } + HideAppLauncher(); }; var pnlbtn = new Panel(); @@ -826,6 +832,13 @@ namespace ShiftOS.WinForms { } + public void SetupControl(Control ctrl) + { + foreach (Control c in ctrl.Controls) + SetupControl(c); + ctrl.Click += (o, a) => HideAppLauncher(); + } + private void apps_Click(object sender, EventArgs e) { if (Shiftorium.UpgradeInstalled("advanced_app_launcher")) |
