chaged folder again

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2023-09-28 21:27:11 +03:00
parent 742384909f
commit bef701eba8
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318

View File

@ -1161,10 +1161,10 @@ void PrismUpdaterApp::backupAppDir()
progress.setValue(i);
QCoreApplication::processEvents();
if (!iter.hasNext() && !glob.isEmpty()) {
if (auto file_info = QFileInfo(FS::PathCombine(m_rootPath, glob)); file_info.exists()) {
if (auto file_info = QFileInfo(FS::PathCombine(app_dir.absolutePath(), glob)); file_info.exists()) {
copy(file_info.absoluteFilePath());
} else {
logUpdate(tr("File doesn't exist, ignoring: %1").arg(FS::PathCombine(m_rootPath, glob)));
logUpdate(tr("File doesn't exist, ignoring: %1").arg(FS::PathCombine(app_dir.absolutePath(), glob)));
}
} else {
while (iter.hasNext()) {