Android: Update devices list after creating an AVD

Ensure that a freshly created AVD is properly listed and is usable. By
forcing a AndroidDeviceManager::updateAvdsList() after successful
creation.

Fixes: QTCREATORBUG-27804
Change-Id: I1ef0fb23d2c13b99d285f07505189f37929f4ed7
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
Alessandro Portale
2022-07-06 18:49:15 +02:00
parent 9b8fd63cd0
commit 777ae87779

View File

@@ -117,8 +117,10 @@ int AvdDialog::exec()
loop.exec(QEventLoop::ExcludeUserInputEvents);
const QFuture<CreateAvdInfo> future = createAvdFutureWatcher.future();
if (future.isResultReadyAt(0))
if (future.isResultReadyAt(0)) {
m_createdAvdInfo = future.result();
AndroidDeviceManager::instance()->updateAvdsList();
}
}
return execResult;