Android: Don't leave SDK location chooser red after reloading

Initially the default location of Android Sdk is marked red.
After clicking "Set Up SDK" and successfully installing,
the chooser stays red, indicating the location is still invalid.

Fix it by explicit triggering validation of the chooser on
packagesReloaded().

Change-Id: Id025f385b9e7c81240b0334360afed1a6bf66761
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
Jarek Kobus
2024-10-28 10:12:06 +01:00
parent 777cc17a0c
commit b3f0356eb3

View File

@@ -482,6 +482,7 @@ AndroidSettingsWidget::AndroidSettingsWidget()
// Validate SDK again after any change in SDK packages.
connect(m_sdkManager, &AndroidSdkManager::packagesReloaded, this, [this] {
m_androidSummary->setInProgressText("Packages reloaded");
m_sdkLocationPathChooser->triggerChanged();
validateSdk();
});
connect(sdkManagerToolButton, &QAbstractButton::clicked, this, [this] {