Fix portable if manifest is missing
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
f15981d786
commit
c15f6fcd2a
@ -474,8 +474,7 @@ PrismUpdaterApp::PrismUpdaterApp(int& argc, char** argv) : QApplication(argc, ar
|
|||||||
target_dir = QDir(m_rootPath).absoluteFilePath("..");
|
target_dir = QDir(m_rootPath).absoluteFilePath("..");
|
||||||
}
|
}
|
||||||
|
|
||||||
QMetaObject::invokeMethod(
|
QMetaObject::invokeMethod(this, [this, target_dir]() { moveAndFinishUpdate(target_dir); }, Qt::QueuedConnection);
|
||||||
this, [this, target_dir]() { moveAndFinishUpdate(target_dir); }, Qt::QueuedConnection);
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
QMetaObject::invokeMethod(this, &PrismUpdaterApp::loadReleaseList, Qt::QueuedConnection);
|
QMetaObject::invokeMethod(this, &PrismUpdaterApp::loadReleaseList, Qt::QueuedConnection);
|
||||||
@ -1118,7 +1117,6 @@ void PrismUpdaterApp::backupAppDir()
|
|||||||
"Qt*.dll",
|
"Qt*.dll",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
file_list.append("portable.txt");
|
|
||||||
logUpdate("manifest.txt empty or missing. making best guess at files to back up.");
|
logUpdate("manifest.txt empty or missing. making best guess at files to back up.");
|
||||||
}
|
}
|
||||||
logUpdate(tr("Backing up:\n %1").arg(file_list.join(",\n ")));
|
logUpdate(tr("Backing up:\n %1").arg(file_list.join(",\n ")));
|
||||||
|
Loading…
Reference in New Issue
Block a user