feat(cpn): save model images with models and settings (#7234)
This commit is contained in:
@@ -232,6 +232,18 @@ int main(int argc, char *argv[])
|
||||
registerOpenTxFirmwares();
|
||||
SimulatorLoader::registerSimulators();
|
||||
|
||||
QTemporaryDir tempDir(QDir::tempPath() % "/etx-cpn-XXXXXX");
|
||||
|
||||
if (!tempDir.isValid()) {
|
||||
qDebug() << "Unable to create application temporary directory";
|
||||
gAppTempPath = "";
|
||||
} else {
|
||||
gAppTempPath = tempDir.path();
|
||||
|
||||
if (!QDir(gAppTempPath).mkdir("IMAGES"))
|
||||
qDebug() << "Unable to create images cache directory:" << Helpers::getImagesCacheDir();
|
||||
}
|
||||
|
||||
Profile & profile = g.currentProfile();
|
||||
if (profile.fwType().isEmpty()){
|
||||
profile.fwType(Firmware::getDefaultVariant()->getId());
|
||||
|
||||
Reference in New Issue
Block a user