Commit a065554d authored by keyongyu's avatar keyongyu

2.0

parent 7e704d8b
......@@ -1028,12 +1028,15 @@ void checkupdate(bool showNew)
}
bool CancelTask()
{
bool bl=MyMsg.Question(LMSG.IfCancelTask);
if(bl){
if(tasker!=null)
tasker.Cancel();
if(bgWorker1.IsBusy)
bgWorker1.CancelAsync();
bool bl=false;
if(tasker !=null && tasker.IsRuning()){
bl=MyMsg.Question(LMSG.IfCancelTask);
if(bl){
if(tasker!=null)
tasker.Cancel();
if(bgWorker1.IsBusy)
bgWorker1.CancelAsync();
}
}
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