From 4913bb45c47bbe5943805c8e04f9ad12aea6c497 Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Fri, 30 Apr 2021 01:59:24 +0300 Subject: [PATCH] --- MainPlugin.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/MainPlugin.cs b/MainPlugin.cs index 6e9d7f9..a0461cb 100644 --- a/MainPlugin.cs +++ b/MainPlugin.cs @@ -35,7 +35,7 @@ namespace EnderIce2.SDRSharpPlugin SmallImageText = $"SDR-RPC plugin v{Assembly.LoadFrom("SDR-RPC.dll").GetName().Version} by EnderIce2" // should show the correct version } }; - private static DiscordRpcClient client; + private DiscordRpcClient client; private bool isRunning = true; public string DisplayName { @@ -86,7 +86,10 @@ namespace EnderIce2.SDRSharpPlugin }; } if (Utils.GetBooleanSetting("EnableRPCInvite", false)) + { windowMessages.Show(); + } + if (Utils.GetBooleanSetting("EnableRPC", true)) { if (RPCalreadyLoaded) @@ -304,9 +307,13 @@ namespace EnderIce2.SDRSharpPlugin } } if (client == null) + { _controlPanel.ChangeStatus = "Client was null"; + } else + { _controlPanel.ChangeStatus = "Presence stopped"; + } } catch (Exception ex) {