aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/FakeSetupScreen.cs
diff options
context:
space:
mode:
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); }));
+ }
};
}