code cleanup

This commit is contained in:
WeeXnes 2022-09-09 22:19:23 +02:00
parent de43f874b8
commit 2cd8fdd6e3
3 changed files with 1 additions and 21 deletions

View file

@ -16,7 +16,7 @@ namespace WeeXnes.Core
public static string encryptionKey = "8zf5#RdyQ]$4x4_";
public static string AppDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "WeeXnes");
public static string SettingsFileName = "settings.ini";
public static string version = "3.6.2";
public static string version = "3.6.3";
public static bool info_isRpcRunning = false;
public static bool info_RpcAutoStart;
public static string apiUrl = "http://weexnes.com:5169/";

View file

@ -84,15 +84,8 @@ namespace WeeXnes.MVVM.View
public void writeLog(customEvent _content, bool _timestamp = true)
{
string timestamp = DateTime.Now.ToString("HH:mm:ss");
/*if (_timestamp)
{
_content = "[" + timestamp + "] " + _content;
}
*/
this.Dispatcher.Invoke(() =>
{
//RpcLog.AppendText(_content + "\n");
//RpcLog.ScrollToEnd();
ListViewVersions.Items.Add(_content);
LogViewer.ScrollToEnd();

View file

@ -110,14 +110,7 @@ namespace WeeXnes.RPC
{
if (foundProcess)
{
//Do when Process is launched
//message.running(this.ProcessName);
start();
/*
Globals.logContent.Value = output;
Globals.logUpdateTrigger.Value = "mjfgoklemkgoeg";
*/
DiscordRpcView.logContent = new customEvent("↪ " + this.Name + " [" + this.ProcessName + ".exe] started", EventType.ProcessStartedEvent);
DiscordRpcView.triggerLogupdate.Value = "nlejgmolegjog";
this.isRunning = true;
@ -127,13 +120,7 @@ namespace WeeXnes.RPC
{
if (!foundProcess)
{
//Do when Process is closed
//message.closed(this.ProcessName);
stop();
/*
Globals.logContent.Value = output;
Globals.logUpdateTrigger.Value = "mjfgoklemkgoeg";
*/
DiscordRpcView.logContent = new customEvent( "↩ " + this.Name + " [" + this.ProcessName + ".exe] closed", EventType.ProcessStoppedEvent);
DiscordRpcView.triggerLogupdate.Value = "nlejgmolegjog";