样式微调, 修复重新打开中间呼出功能失效

This commit is contained in:
liufei
2021-12-22 09:34:04 +08:00
parent 0453cdad66
commit 8d4201f5ba
4 changed files with 19 additions and 10 deletions

View File

@@ -483,10 +483,13 @@ namespace GeekDesk
/// <param name="e"></param>
private void ReStartApp(object sender, RoutedEventArgs e)
{
MouseHookThread.Dispose();
if (appData.AppConfig.MouseMiddleShow)
{
MouseHookThread.Dispose();
}
Process p = new Process();
p.StartInfo.FileName = Constants.APP_DIR + Constants.MY_NAME + ".exe";
p.StartInfo.FileName = Constants.APP_DIR + "GeekDesk.exe";
p.StartInfo.WorkingDirectory = Constants.APP_DIR;
p.Start();