diff options
| author | Michael <[email protected]> | 2017-02-18 10:37:11 -0500 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-02-18 10:37:11 -0500 |
| commit | 9b8d5861a954610713ae66a53d2ac067991d9b68 (patch) | |
| tree | e550f758e52ec8ca12357d91c9fa13907e70c4f3 /ShiftOS.WinForms/WinformsDesktop.cs | |
| parent | 30823a0778614d0f9fd6f82b5d9eb03aab41280d (diff) | |
| download | shiftos_thereturn-9b8d5861a954610713ae66a53d2ac067991d9b68.tar.gz shiftos_thereturn-9b8d5861a954610713ae66a53d2ac067991d9b68.tar.bz2 shiftos_thereturn-9b8d5861a954610713ae66a53d2ac067991d9b68.zip | |
WHOA LUA STUFF :dancer:
Diffstat (limited to 'ShiftOS.WinForms/WinformsDesktop.cs')
| -rw-r--r-- | ShiftOS.WinForms/WinformsDesktop.cs | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/ShiftOS.WinForms/WinformsDesktop.cs b/ShiftOS.WinForms/WinformsDesktop.cs index c2bbe5c..0ea150c 100644 --- a/ShiftOS.WinForms/WinformsDesktop.cs +++ b/ShiftOS.WinForms/WinformsDesktop.cs @@ -75,8 +75,16 @@ namespace ShiftOS.WinForms } }; - SaveSystem.GameReady += () => this.Invoke(new Action(() => SetupDesktop())); - Shiftorium.Installed += () => this.Invoke(new Action(() => SetupDesktop())); + SaveSystem.GameReady += () => + { + if(this.Visible == true) + this.Invoke(new Action(() => SetupDesktop())); + }; + Shiftorium.Installed += () => + { + if(this.Visible == true) + this.Invoke(new Action(() => SetupDesktop())); + }; var time = new Timer(); time.Interval = 100; this.KeyDown += (o, a) => @@ -112,16 +120,7 @@ namespace ShiftOS.WinForms time.Start(); this.DoubleBuffered = true; - SetCursors(this); - } - - public void SetCursors(Control ctrl) - { - ControlManager.SetupControl(ctrl); - foreach(Control child in ctrl.Controls) - { - SetCursors(child); - } + } /// <summary> |
