aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/FakeSetupScreen.cs
diff options
context:
space:
mode:
authorAren <[email protected]>2017-02-08 18:22:33 +0100
committerAren <[email protected]>2017-02-08 18:22:33 +0100
commitf66cf31e5d590cfcd82c849f18986003b47f7976 (patch)
tree070a9b0e5218d01cfdee60d10ece3a511d23cc1c /ShiftOS.WinForms/FakeSetupScreen.cs
parentb6dff54e9509b3348997a4da9652b152a3033cdd (diff)
parentf5cbbaf892df078364e70dc26e575abf2291a7d7 (diff)
downloadshiftos_thereturn-f66cf31e5d590cfcd82c849f18986003b47f7976.tar.gz
shiftos_thereturn-f66cf31e5d590cfcd82c849f18986003b47f7976.tar.bz2
shiftos_thereturn-f66cf31e5d590cfcd82c849f18986003b47f7976.zip
Merge branch 'master' of https://github.com/shiftos-game/shiftos
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 6831f5e..8bde718 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); }));
+ }
};
}