diff options
| author | Aren <[email protected]> | 2017-02-08 18:22:33 +0100 |
|---|---|---|
| committer | Aren <[email protected]> | 2017-02-08 18:22:33 +0100 |
| commit | f66cf31e5d590cfcd82c849f18986003b47f7976 (patch) | |
| tree | 070a9b0e5218d01cfdee60d10ece3a511d23cc1c /ShiftOS.WinForms/FakeSetupScreen.cs | |
| parent | b6dff54e9509b3348997a4da9652b152a3033cdd (diff) | |
| parent | f5cbbaf892df078364e70dc26e575abf2291a7d7 (diff) | |
| download | shiftos_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.cs | 11 |
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); })); + } }; } |
