mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 09:55:37 -04:00
Write hasInternet to GlobalStorage.
CAL-431 #close
This commit is contained in:
parent
a44f336150
commit
f4dc81b0bc
1 changed files with 3 additions and 1 deletions
|
@ -338,7 +338,9 @@ bool
|
||||||
RequirementsChecker::checkHasInternet()
|
RequirementsChecker::checkHasInternet()
|
||||||
{
|
{
|
||||||
// default to true in the QNetworkAccessManager::UnknownAccessibility case
|
// 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue