Beispiel #1
0
//tick
void StartStage_AutoPatch::tick()
{
	if (!processDownload())
	{
		return;
	}

	if (!processUnzip())
	{
		return;
	}
}
void dlgCheckMaterialUpdates::downloadFinished(QNetworkReply *reply)
{
    QUrl url = reply->url();
    if (reply->error())
    {
        QMessageBox::warning(this,
                             tr("Material Update"),
                             tr("Cannot perform action.\n%1.").arg(reply->errorString()),
                             QMessageBox::Ok);
        return;
    }

    ui->lblLoading->setVisible(false);
    ui->lblStatus->clear();

    if (url.toString() == URLupdate)
        checkUpdate();
    else if(url.toString() == URLmaterialsFile)
        processDownload();
}