Embedded: fix network detection

This commit is contained in:
Floris Bos 2024-01-15 00:16:43 +01:00
parent ebe72a4b16
commit 8c9de2d78c
7 changed files with 188 additions and 6 deletions

View file

@ -347,6 +347,7 @@ int main(int argc, char *argv[])
qmlwindow->connect(&imageWriter, SIGNAL(finalizing()), qmlwindow, SLOT(onFinalizing()));
qmlwindow->connect(&imageWriter, SIGNAL(networkOnline()), qmlwindow, SLOT(fetchOSlist()));
qmlwindow->connect(&imageWriter, SIGNAL(osListPrepared()), qmlwindow, SLOT(onOsListPrepared()));
qmlwindow->connect(&imageWriter, SIGNAL(networkInfo(QVariant)), qmlwindow, SLOT(onNetworkInfo(QVariant)));
#ifndef QT_NO_WIDGETS
/* Set window position */
@ -375,7 +376,8 @@ int main(int argc, char *argv[])
qmlwindow->setProperty("y", y);
#endif
imageWriter.beginOSListFetch();
if (imageWriter.isOnline())
imageWriter.beginOSListFetch();
int rc = app.exec();