forked from qt-creator/qt-creator
McuSupport: Make legacy kit creation match QtCreator 8
The default path for the STM32 Cube Programmer was recently changed for legacy packages. This means that Qt for MCUs 2.2 kits created with QtCreator 9 and kits created with QtCreator 8 would have different paths. This is not ideal as a basis for automatically creating new kits when changing Qt for MCUs version. This change makes QtCreator 9 create legacy kits in the same way QtCreator 8 did. Change-Id: I8b1fa4a0d673f746edf058aee292e6d42ca2cdcf Reviewed-by: Yasser Grimes <yasser.grimes@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -362,9 +362,9 @@ McuPackagePtr createStm32CubeProgrammerPackage(const SettingsHandler::Ptr &setti
|
||||
FilePath defaultPath;
|
||||
const QString cubePath = "STMicroelectronics/STM32Cube/STM32CubeProgrammer";
|
||||
if (HostOsInfo::isWindowsHost())
|
||||
defaultPath = findInProgramFiles(cubePath) / "bin";
|
||||
defaultPath = findInProgramFiles(cubePath);
|
||||
else
|
||||
defaultPath = FileUtils::homePath() / cubePath / "bin";
|
||||
defaultPath = FileUtils::homePath() / cubePath;
|
||||
if (!defaultPath.exists())
|
||||
FilePath defaultPath = {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user