From b3f0356eb3749ebf91b69dfb55f7cead1243045b Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Mon, 28 Oct 2024 10:12:06 +0100 Subject: [PATCH] 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 --- src/plugins/android/androidsettingswidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/android/androidsettingswidget.cpp b/src/plugins/android/androidsettingswidget.cpp index c6cabe83fe0..f4045fb6845 100644 --- a/src/plugins/android/androidsettingswidget.cpp +++ b/src/plugins/android/androidsettingswidget.cpp @@ -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] {