FIx: Make SingleInstance start listening after MainForm is Loaded

This commit is contained in:
ChsBuffer
2021-06-02 11:44:08 +08:00
parent d8e60aa355
commit 6827207434
2 changed files with 2 additions and 1 deletions

View File

@@ -103,6 +103,8 @@ namespace Netch.Forms
if (Global.Settings.StartWhenOpened)
ControlButton_Click(null, null);
}));
Netch.SingleInstance.ListenForArgumentsFromSuccessiveInstances();
}
private void RecordSize()

View File

@@ -54,7 +54,6 @@ namespace Netch
}
SingleInstance.ArgumentsReceived.Subscribe(SingleInstance_ArgumentsReceived);
SingleInstance.ListenForArgumentsFromSuccessiveInstances();
// 清理上一次的日志文件,防止淤积占用磁盘空间
if (Directory.Exists("logging"))