Android: Remove CheckableMessageBox::shouldAskAgain check

Most likely, that was checked in addition to InfoBar::canInfoBeAdded in
order to be settings compatible with QtC versions prior to the migration
from CheckableMessageBox to InfoBar. But that is at this point 4 Years
ago, and should be removed because it causes confusion when reading the
code.

Change-Id: I76ae6a9ed0c8f9f7fa20b64090d89724588511ed
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
Alessandro Portale
2023-05-04 13:00:00 +02:00
parent 4d2632c3fa
commit 5943152f65

View File

@@ -153,8 +153,7 @@ void AndroidPlugin::kitsRestored()
void AndroidPlugin::askUserAboutAndroidSetup()
{
if (!Utils::CheckableMessageBox::shouldAskAgain(Core::ICore::settings(), kSetupAndroidSetting)
|| !Core::ICore::infoBar()->canInfoBeAdded(kSetupAndroidSetting))
if (!Core::ICore::infoBar()->canInfoBeAdded(kSetupAndroidSetting))
return;
Utils::InfoBarEntry