| 260 | } |
| 261 | |
| 262 | void InstanceImportTask::processFlame() |
| 263 | { |
| 264 | auto* inst_creation_task = new FlameCreationTask(m_stagingPath, m_globalSettings, m_parent); |
| 265 | |
| 266 | inst_creation_task->setName(*this); |
| 267 | inst_creation_task->setIcon(m_instIcon); |
| 268 | inst_creation_task->setGroup(m_instGroup); |
| 269 | |
| 270 | connect(inst_creation_task, &Task::succeeded, this, [this, inst_creation_task] { |
| 271 | setOverride(inst_creation_task->shouldOverride()); |
| 272 | emitSucceeded(); |
| 273 | }); |
| 274 | connect(inst_creation_task, &Task::failed, this, &InstanceImportTask::emitFailed); |
| 275 | connect(inst_creation_task, &Task::progress, this, &InstanceImportTask::setProgress); |
| 276 | connect(inst_creation_task, &Task::status, this, &InstanceImportTask::setStatus); |
| 277 | connect(inst_creation_task, &Task::finished, inst_creation_task, &InstanceCreationTask::deleteLater); |
| 278 | |
| 279 | connect(this, &Task::aborted, inst_creation_task, &InstanceCreationTask::abort); |
| 280 | connect(inst_creation_task, &Task::aborted, this, &Task::abort); |
| 281 | connect(inst_creation_task, &Task::abortStatusChanged, this, &Task::setAbortable); |
| 282 | |
| 283 | inst_creation_task->start(); |
| 284 | } |
| 285 | |
| 286 | void InstanceImportTask::processTechnic() |
| 287 | { |
nothing calls this directly
no test coverage detected