forked from qt-creator/qt-creator
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:
@@ -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] {
|
||||
|
Reference in New Issue
Block a user