code cleanup

This commit is contained in:
WeeXnes 2022-09-09 22:23:24 +02:00
parent dfcd524394
commit 0b689a177b
4 changed files with 8 additions and 1 deletions

View file

@ -208,3 +208,5 @@ namespace WeeXnes.Core
protected virtual void OnValueChanged() => ValueChanged?.Invoke(); protected virtual void OnValueChanged() => ValueChanged?.Invoke();
} }
} }

View file

@ -317,3 +317,5 @@ namespace WeeXnes.MVVM.View
} }
} }
} }

View file

@ -187,3 +187,5 @@ namespace WeeXnes
} }
} }
} }

View file

@ -110,6 +110,7 @@ namespace WeeXnes.RPC
{ {
if (foundProcess) if (foundProcess)
{ {
start(); start();
DiscordRpcView.logContent = new customEvent("↪ " + this.Name + " [" + this.ProcessName + ".exe] started", EventType.ProcessStartedEvent); DiscordRpcView.logContent = new customEvent("↪ " + this.Name + " [" + this.ProcessName + ".exe] started", EventType.ProcessStartedEvent);
DiscordRpcView.triggerLogupdate.Value = "nlejgmolegjog"; DiscordRpcView.triggerLogupdate.Value = "nlejgmolegjog";
@ -120,10 +121,10 @@ namespace WeeXnes.RPC
{ {
if (!foundProcess) if (!foundProcess)
{ {
stop(); stop();
DiscordRpcView.logContent = new customEvent( "↩ " + this.Name + " [" + this.ProcessName + ".exe] closed", EventType.ProcessStoppedEvent); DiscordRpcView.logContent = new customEvent( "↩ " + this.Name + " [" + this.ProcessName + ".exe] closed", EventType.ProcessStoppedEvent);
DiscordRpcView.triggerLogupdate.Value = "nlejgmolegjog"; DiscordRpcView.triggerLogupdate.Value = "nlejgmolegjog";
this.isRunning = false; this.isRunning = false;
} }
} }