优化everything启动

This commit is contained in:
BookerLiu
2023-04-06 20:51:17 +08:00
parent 98f332dc2e
commit 77a6233e63
2 changed files with 3 additions and 3 deletions

View File

@@ -196,7 +196,7 @@ namespace GeekDesk.Control.UserControls.Config
{
if (MainWindow.appData.AppConfig.EnableEveryThing == true)
{
EveryThingUtil.EnableEveryThing();
EveryThingUtil.EnableEveryThing(0);
} else
{
EveryThingUtil.DisableEveryThing();

View File

@@ -27,7 +27,7 @@ namespace GeekDesk.Plugins.EveryThing
private static Process exeProcess = null;
public static void EnableEveryThing()
public static void EnableEveryThing(int delayTime = 2000)
{
string pluginsPath = Constants.PLUGINS_PATH;
@@ -38,7 +38,7 @@ namespace GeekDesk.Plugins.EveryThing
{
try
{
Thread.Sleep(2000);
Thread.Sleep(delayTime);
//判断EveryThing服务是否已启动
bool enabled = false;