parent
3f71c10964
commit
39d1d6e237
@ -841,7 +841,7 @@ void Updater::downloaded(const QUrl &url, const QByteArray &data)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
const auto file = downloading_.takeAt(index);
|
const auto file = downloading_.takeAt(index);
|
||||||
LTRACE() << "downloaded file" << file.expandedPath;
|
LTRACE() << "downloaded file" << url << file.expandedPath;
|
||||||
|
|
||||||
const auto mustUnpack =
|
const auto mustUnpack =
|
||||||
url.toString().endsWith(".zip") && !file.expandedPath.endsWith(".zip");
|
url.toString().endsWith(".zip") && !file.expandedPath.endsWith(".zip");
|
||||||
@ -852,7 +852,7 @@ void Updater::downloaded(const QUrl &url, const QByteArray &data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
Installer installer;
|
Installer installer;
|
||||||
installer.install(file, data);
|
installer.install(file, unpacked);
|
||||||
if (!installer.error().isEmpty()) {
|
if (!installer.error().isEmpty()) {
|
||||||
emit error(installer.error());
|
emit error(installer.error());
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user