Write hasInternet into GlobalStorage.

This commit is contained in:
Teo Mrnjavac 2016-08-18 11:27:53 +02:00
parent e3282a910d
commit 6926f239f7

View File

@ -1,6 +1,6 @@
/* === This file is part of Calamares - <http://github.com/calamares> ===
*
* Copyright 2014-2015, Teo Mrnjavac <teo@kde.org>
* Copyright 2014-2016, Teo Mrnjavac <teo@kde.org>
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -337,7 +337,10 @@ RequirementsChecker::checkHasInternet()
return true;
}
return nmState == NM_STATE_CONNECTED_GLOBAL;
bool hasInternet = nmState == NM_STATE_CONNECTED_GLOBAL;
Calamares::JobQueue::instance()->globalStorage()->insert( "hasInternet", hasInternet );
return hasInternet;
}