Write hasInternet to GlobalStorage.

CAL-431 #close
This commit is contained in:
Teo Mrnjavac 2016-12-12 13:37:18 +01:00 committed by Philip
parent 32039bd388
commit 66c578fa8d

View File

@ -338,7 +338,9 @@ bool
RequirementsChecker::checkHasInternet()
{
// default to true in the QNetworkAccessManager::UnknownAccessibility case
return QNetworkAccessManager(this).networkAccessible() != QNetworkAccessManager::NotAccessible;
bool hasInternet = QNetworkAccessManager(this).networkAccessible() != QNetworkAccessManager::NotAccessible;
Calamares::JobQueue::instance()->globalStorage()->insert( "hasInternet", hasInternet );
return hasInternet;
}