diff options
| author | Michael <[email protected]> | 2017-02-08 11:58:16 -0500 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-02-08 11:58:16 -0500 |
| commit | f5cbbaf892df078364e70dc26e575abf2291a7d7 (patch) | |
| tree | 69a61b051339530d424e640d29140a88d11fbf26 /ShiftOS.WinForms/FakeSetupScreen.cs | |
| parent | 512a02ba88678cb7ddd65f32245135c8cf2ba1c3 (diff) | |
| download | shiftos_thereturn-f5cbbaf892df078364e70dc26e575abf2291a7d7.tar.gz shiftos_thereturn-f5cbbaf892df078364e70dc26e575abf2291a7d7.tar.bz2 shiftos_thereturn-f5cbbaf892df078364e70dc26e575abf2291a7d7.zip | |
Fix Shiftorium init bugs.
Diffstat (limited to 'ShiftOS.WinForms/FakeSetupScreen.cs')
| -rw-r--r-- | ShiftOS.WinForms/FakeSetupScreen.cs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ShiftOS.WinForms/FakeSetupScreen.cs b/ShiftOS.WinForms/FakeSetupScreen.cs index dd93a55..eb3a186 100644 --- a/ShiftOS.WinForms/FakeSetupScreen.cs +++ b/ShiftOS.WinForms/FakeSetupScreen.cs @@ -27,10 +27,13 @@ namespace ShiftOS.WinForms SetupUI(); ServerManager.MessageReceived += (msg) => { - if (msg.Name == "mud_notfound") - this.Invoke(new Action(() => { MUDUserFound?.Invoke(false); })); - else if (msg.Name == "mud_found") - this.Invoke(new Action(() => { MUDUserFound?.Invoke(true); })); + if (this.Visible == true) + { + if (msg.Name == "mud_notfound") + this.Invoke(new Action(() => { MUDUserFound?.Invoke(false); })); + else if (msg.Name == "mud_found") + this.Invoke(new Action(() => { MUDUserFound?.Invoke(true); })); + } }; } |
