Android: simplify AndroidSdkManagerWidget::installEssentials()

Remove an argument that doesn't need to be be provided explicitly
by the caller and can be done internally.

Change-Id: Ie225f847560b746ce9b8103ab38caca5caca1b0a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Assam Boudjelthia
2022-03-26 19:06:17 +02:00
parent d7fd254a79
commit 525a284f3e
3 changed files with 6 additions and 8 deletions

View File

@@ -515,11 +515,8 @@ void AndroidSettingsWidget::validateSdk()
PlatformSdkInstalledRow,
AllEssentialsInstalledRow});
m_androidConfig.setSdkFullyConfigured(sdkToolsOk && componentsOk);
if (sdkToolsOk && !componentsOk) {
m_sdkManagerWidget->installEssentials(
"Android SDK installation is missing necessary packages. "
"Do you want to install the missing packages?");
}
if (sdkToolsOk && !componentsOk)
m_sdkManagerWidget->installEssentials();
updateNdkList();
updateUI();