Skip to content

Commit 4913bb4

Browse files
author
EnderIce2
committed
1 parent a1a66c3 commit 4913bb4

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

MainPlugin.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class MainPlugin : ISharpPlugin
3535
SmallImageText = $"SDR-RPC plugin v{Assembly.LoadFrom("SDR-RPC.dll").GetName().Version} by EnderIce2" // should show the correct version
3636
}
3737
};
38-
private static DiscordRpcClient client;
38+
private DiscordRpcClient client;
3939
private bool isRunning = true;
4040
public string DisplayName
4141
{
@@ -86,7 +86,10 @@ public void Initialize(ISharpControl control)
8686
};
8787
}
8888
if (Utils.GetBooleanSetting("EnableRPCInvite", false))
89+
{
8990
windowMessages.Show();
91+
}
92+
9093
if (Utils.GetBooleanSetting("EnableRPC", true))
9194
{
9295
if (RPCalreadyLoaded)
@@ -304,9 +307,13 @@ async Task MainLoop()
304307
}
305308
}
306309
if (client == null)
310+
{
307311
_controlPanel.ChangeStatus = "Client was null";
312+
}
308313
else
314+
{
309315
_controlPanel.ChangeStatus = "Presence stopped";
316+
}
310317
}
311318
catch (Exception ex)
312319
{

0 commit comments

Comments
 (0)