Commit a065554d authored by keyongyu's avatar keyongyu

2.0

parent 7e704d8b
...@@ -1028,12 +1028,15 @@ void checkupdate(bool showNew) ...@@ -1028,12 +1028,15 @@ void checkupdate(bool showNew)
} }
bool CancelTask() bool CancelTask()
{ {
bool bl=MyMsg.Question(LMSG.IfCancelTask); bool bl=false;
if(bl){ if(tasker !=null && tasker.IsRuning()){
if(tasker!=null) bl=MyMsg.Question(LMSG.IfCancelTask);
tasker.Cancel(); if(bl){
if(bgWorker1.IsBusy) if(tasker!=null)
bgWorker1.CancelAsync(); tasker.Cancel();
if(bgWorker1.IsBusy)
bgWorker1.CancelAsync();
}
} }
return bl; return bl;
} }
......
No preview for this file type
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment