mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-23 02:12:14 +00:00
Hide AL when desktop items are clicked
This commit is contained in:
parent
56e216a430
commit
1db8c4a00d
1 changed files with 13 additions and 0 deletions
|
@ -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"))
|
||||
|
|
Loading…
Reference in a new issue