feat: Propogated subtask progress
Oh boy this is big. > TaskStepProgress struct is now QMetaObject compatabile and can be sent through signals > Task now has a method to propogates sub task progress it must be signal bound by each task containing a task wishing to report progress of it's children. > Downloads report speed > Tasks now have UUIDS to track them - use when reporting - use when logging - use when storeing them or objects related to them Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
		| @@ -683,6 +683,7 @@ void PackInstallTask::installConfigs() | ||||
|         abortable = true; | ||||
|         setProgress(current, total); | ||||
|     }); | ||||
|     connect(jobPtr.get(), &NetJob::stepProgress, this, &PackInstallTask::propogateStepProgress); | ||||
|     connect(jobPtr.get(), &NetJob::aborted, [&]{ | ||||
|         abortable = false; | ||||
|         jobPtr.reset(); | ||||
| @@ -849,6 +850,7 @@ void PackInstallTask::downloadMods() | ||||
|         abortable = true; | ||||
|         setProgress(current, total); | ||||
|     }); | ||||
|     connect(jobPtr.get(), &NetJob::stepProgress, this, &PackInstallTask::propogateStepProgress); | ||||
|     connect(jobPtr.get(), &NetJob::aborted, [&] | ||||
|     { | ||||
|         abortable = false; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Rachel Powers
					Rachel Powers