fix(cpn): treat missing image files as warnings (#7669)

This commit is contained in:
Neil Horne
2026-08-18 18:29:25 +10:00
committed by GitHub
parent fa52eea408
commit 2fc0fd219a
2 changed files with 12 additions and 7 deletions
+5 -3
View File
@@ -174,11 +174,13 @@ bool EtxFormat::writeImageFile(const QString & filename)
}
statusMsg(tr("File written: %1").arg(filename));
return true;
} else {
// the non-existence of a Companion accessible image file is not fatal
// it may exist on the radio - so continue
statusMsg(tr("Unable to find and write image file: %1").arg(filename), QtWarningMsg);
}
fatalMsg(tr("No application image cache"));
return false;
return true;
}
bool EtxFormat::getFileList(std::list<std::string>& filelist)
+7 -4
View File
@@ -86,7 +86,8 @@ bool SdcardFormat::loadImageFile(const QString & filename, bool optional)
return false;
}
} else {
fatalMsg(tr("No application image cache"));
// this should not occur
fatalMsg(tr("Application image cache directory not found"));
return false;
}
@@ -143,11 +144,13 @@ bool SdcardFormat::writeImageFile(const QString & filename)
}
statusMsg(tr("Image written: %1").arg(filename));
return true;
} else {
// the non-existence of a Companion accessible image file is not fatal
// it may exist on the radio - so continue
statusMsg(tr("Unable to find and write image file: %1").arg(filename), QtWarningMsg);
}
fatalMsg(tr("No application image cache"));
return false;
return true;
}
bool SdcardFormat::getFileList(std::list<std::string>& filelist)