removed line
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
c94ee67077
commit
5e2d1ffdfb
@ -204,7 +204,7 @@ Task::Ptr FlameAPI::getFiles(const QStringList& fileIds, std::shared_ptr<QByteAr
|
|||||||
return netJob;
|
return netJob;
|
||||||
}
|
}
|
||||||
|
|
||||||
Task::Ptr FlameAPI::getFile(const QString& addonId, const QString& fileId, std::shared_ptr<QByteArray>response) const
|
Task::Ptr FlameAPI::getFile(const QString& addonId, const QString& fileId, std::shared_ptr<QByteArray> response) const
|
||||||
{
|
{
|
||||||
auto netJob = makeShared<NetJob>(QString("Flame::GetFile"), APPLICATION->network());
|
auto netJob = makeShared<NetJob>(QString("Flame::GetFile"), APPLICATION->network());
|
||||||
netJob->addNetAction(
|
netJob->addNetAction(
|
||||||
|
@ -984,7 +984,7 @@ void MainWindow::processURLs(QList<QUrl> urls)
|
|||||||
QUrl local_url;
|
QUrl local_url;
|
||||||
if (!url.isLocalFile()) { // download the remote resource and identify
|
if (!url.isLocalFile()) { // download the remote resource and identify
|
||||||
QUrl dl_url;
|
QUrl dl_url;
|
||||||
if(url.scheme() == "curseforge") {
|
if (url.scheme() == "curseforge") {
|
||||||
// need to find the download link for the modpack / resource
|
// need to find the download link for the modpack / resource
|
||||||
// format of url curseforge://install?addonId=IDHERE&fileId=IDHERE
|
// format of url curseforge://install?addonId=IDHERE&fileId=IDHERE
|
||||||
QUrlQuery query(url);
|
QUrlQuery query(url);
|
||||||
@ -1033,7 +1033,6 @@ void MainWindow::processURLs(QList<QUrl> urls)
|
|||||||
dlUrlDialod.execWithTask(job.get());
|
dlUrlDialod.execWithTask(job.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
dl_url = url;
|
dl_url = url;
|
||||||
}
|
}
|
||||||
@ -1050,8 +1049,9 @@ void MainWindow::processURLs(QList<QUrl> urls)
|
|||||||
auto archivePath = entry->getFullPath();
|
auto archivePath = entry->getFullPath();
|
||||||
|
|
||||||
bool dl_success = false;
|
bool dl_success = false;
|
||||||
connect(dl_job.get(), &Task::failed, this, [this](QString reason){CustomMessageBox::selectable(this, tr("Error"), reason, QMessageBox::Critical)->show(); });
|
connect(dl_job.get(), &Task::failed, this,
|
||||||
connect(dl_job.get(), &Task::succeeded, this, [&dl_success]{dl_success = true;});
|
[this](QString reason) { CustomMessageBox::selectable(this, tr("Error"), reason, QMessageBox::Critical)->show(); });
|
||||||
|
connect(dl_job.get(), &Task::succeeded, this, [&dl_success] { dl_success = true; });
|
||||||
|
|
||||||
{ // drop stack
|
{ // drop stack
|
||||||
ProgressDialog dlUrlDialod(this);
|
ProgressDialog dlUrlDialod(this);
|
||||||
|
@ -114,7 +114,6 @@ void ImportPage::updateState()
|
|||||||
bool isMRPack = fi.suffix() == "mrpack";
|
bool isMRPack = fi.suffix() == "mrpack";
|
||||||
|
|
||||||
if (fi.exists() && (isZip || isMRPack)) {
|
if (fi.exists() && (isZip || isMRPack)) {
|
||||||
QFileInfo fi(url.fileName());
|
|
||||||
auto extra_info = QMap(m_extra_info);
|
auto extra_info = QMap(m_extra_info);
|
||||||
qDebug() << "Pack Extra Info" << extra_info << m_extra_info;
|
qDebug() << "Pack Extra Info" << extra_info << m_extra_info;
|
||||||
dialog->setSuggestedPack(fi.completeBaseName(), new InstanceImportTask(url, this, std::move(extra_info)));
|
dialog->setSuggestedPack(fi.completeBaseName(), new InstanceImportTask(url, this, std::move(extra_info)));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user