aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/FakeSetupScreen.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-02-08 11:58:16 -0500
committerMichael <[email protected]>2017-02-08 11:58:16 -0500
commitf5cbbaf892df078364e70dc26e575abf2291a7d7 (patch)
tree69a61b051339530d424e640d29140a88d11fbf26 /ShiftOS.WinForms/FakeSetupScreen.cs
parent512a02ba88678cb7ddd65f32245135c8cf2ba1c3 (diff)
downloadshiftos_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.cs11
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); }));
+ }
};
}