File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments