NOISSUE refactor NetAction to be based on Task
Still missing some things, this is part 1.
This commit is contained in:
parent
243f7e4fb4
commit
e1465f4848
42 changed files with 299 additions and 314 deletions
|
@ -116,7 +116,7 @@ void OneSixUpdate::next()
|
|||
disconnect(task.get(), &Task::succeeded, this, &OneSixUpdate::subtaskSucceeded);
|
||||
disconnect(task.get(), &Task::failed, this, &OneSixUpdate::subtaskFailed);
|
||||
disconnect(task.get(), &Task::progress, this, &OneSixUpdate::progress);
|
||||
disconnect(task.get(), &Task::status, this, &OneSixUpdate::setStatus);
|
||||
disconnect(task.get(), &Task::status, this, &OneSixUpdate::setStatusText);
|
||||
}
|
||||
if(m_currentTask == m_tasks.size())
|
||||
{
|
||||
|
@ -132,7 +132,7 @@ void OneSixUpdate::next()
|
|||
connect(task.get(), &Task::succeeded, this, &OneSixUpdate::subtaskSucceeded);
|
||||
connect(task.get(), &Task::failed, this, &OneSixUpdate::subtaskFailed);
|
||||
connect(task.get(), &Task::progress, this, &OneSixUpdate::progress);
|
||||
connect(task.get(), &Task::status, this, &OneSixUpdate::setStatus);
|
||||
connect(task.get(), &Task::status, this, &OneSixUpdate::setStatusText);
|
||||
// if the task is already running, do not start it again
|
||||
if(!task->isRunning())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue