mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-26 18:14:22 +00:00
bf5f5091ef
* Errors are reported back to task users via Failure signals. * Lwjgl doesn't download on each legacy instance start anymore. * Tasks were unified when it comes to success/failure. * Task dialogs don't get spawned after short tasks finish anymore.
13 lines
387 B
C++
13 lines
387 B
C++
#include "BaseUpdate.h"
|
|
|
|
BaseUpdate::BaseUpdate ( BaseInstance* inst, QObject* parent ) : Task ( parent )
|
|
{
|
|
m_inst = inst;
|
|
}
|
|
|
|
void BaseUpdate::updateDownloadProgress(qint64 current, qint64 total)
|
|
{
|
|
// The progress on the current file is current / total
|
|
float currentDLProgress = (float) current / (float) total;
|
|
setProgress((int)(currentDLProgress * 100)); // convert to percentage
|
|
} |