mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
Use an owning QByteArray in ByteArraySink (#5050)
This commit is contained in:
commit
b114d043f6
70 changed files with 404 additions and 403 deletions
|
|
@ -963,10 +963,8 @@ void MainWindow::processURLs(QList<QUrl> urls)
|
|||
extra_info.insert("pack_id", addonId);
|
||||
extra_info.insert("pack_version_id", fileId);
|
||||
|
||||
auto array = std::make_shared<QByteArray>();
|
||||
|
||||
auto api = FlameAPI();
|
||||
auto job = api.getFile(addonId, fileId, array.get());
|
||||
auto [job, array] = api.getFile(addonId, fileId);
|
||||
|
||||
connect(job.get(), &Task::failed, this,
|
||||
[this](QString reason) { CustomMessageBox::selectable(this, tr("Error"), reason, QMessageBox::Critical)->show(); });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue