✅ 优化everything启动
This commit is contained in:
@@ -196,7 +196,7 @@ namespace GeekDesk.Control.UserControls.Config
|
|||||||
{
|
{
|
||||||
if (MainWindow.appData.AppConfig.EnableEveryThing == true)
|
if (MainWindow.appData.AppConfig.EnableEveryThing == true)
|
||||||
{
|
{
|
||||||
EveryThingUtil.EnableEveryThing();
|
EveryThingUtil.EnableEveryThing(0);
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
EveryThingUtil.DisableEveryThing();
|
EveryThingUtil.DisableEveryThing();
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ namespace GeekDesk.Plugins.EveryThing
|
|||||||
private static Process exeProcess = null;
|
private static Process exeProcess = null;
|
||||||
|
|
||||||
|
|
||||||
public static void EnableEveryThing()
|
public static void EnableEveryThing(int delayTime = 2000)
|
||||||
{
|
{
|
||||||
string pluginsPath = Constants.PLUGINS_PATH;
|
string pluginsPath = Constants.PLUGINS_PATH;
|
||||||
|
|
||||||
@@ -38,7 +38,7 @@ namespace GeekDesk.Plugins.EveryThing
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Thread.Sleep(2000);
|
Thread.Sleep(delayTime);
|
||||||
|
|
||||||
//判断EveryThing服务是否已启动
|
//判断EveryThing服务是否已启动
|
||||||
bool enabled = false;
|
bool enabled = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user