| 31 | namespace FTBImportAPP { |
| 32 | |
| 33 | void PackInstallTask::executeTask() |
| 34 | { |
| 35 | setStatus(tr("Copying files...")); |
| 36 | setAbortable(false); |
| 37 | progress(1, 2); |
| 38 | |
| 39 | m_copyFuture = QtConcurrent::run(QThreadPool::globalInstance(), [this] { |
| 40 | FS::copy folderCopy(m_pack.path, FS::PathCombine(m_stagingPath, "minecraft")); |
| 41 | folderCopy.followSymlinks(true); |
| 42 | return folderCopy(); |
| 43 | }); |
| 44 | connect(&m_copyFutureWatcher, &QFutureWatcher<bool>::finished, this, &PackInstallTask::copySettings); |
| 45 | connect(&m_copyFutureWatcher, &QFutureWatcher<bool>::canceled, this, &PackInstallTask::emitAborted); |
| 46 | m_copyFutureWatcher.setFuture(m_copyFuture); |
| 47 | } |
| 48 | |
| 49 | void PackInstallTask::copySettings() |
| 50 | { |
nothing calls this directly
no test coverage detected