McuSupport: Remove outdated Qt for MCUs kits

Add a version to the generated Qt for MCUs kits. That version will
increase with every change to the way Qt for MCUs kits get generated.

If there are auto-detected Qt for MCUs kits with a different version
than the current, remove these kits when a "fresh" gets generated.

Task-number: QTCREATORBUG-23891
Change-Id: Iafcd2342d458f9c77ada47180cb61b3b4b090598
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Alessandro Portale
2020-04-22 23:24:54 +02:00
parent ab840d0043
commit 5795ce2aae
4 changed files with 22 additions and 0 deletions

View File

@@ -231,6 +231,7 @@ void McuSupportOptionsWidget::apply()
return;
McuSupportOptions::registerQchFiles();
McuSupportOptions::removeOutdatedKits();
const McuTarget *mcuTarget = currentMcuTarget();
if (!mcuTarget)