1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
diff --git a/src/app/qml/lomiri-weather-app.qml b/src/app/qml/lomiri-weather-app.qml
index 672bdfa..7edfc3c 100644
--- a/src/app/qml/lomiri-weather-app.qml
+++ b/src/app/qml/lomiri-weather-app.qml
@@ -39,7 +39,7 @@ MainView {
When the app is started with clickable desktop, the check for network connection via Connectivity does not work.
If the app is run in desktop mode, set this property to 'true' and the check will be disabled.
*/
- property bool isDesktopMode: false
+ property bool isDesktopMode: true
automaticOrientation: true
diff --git a/src/plugin/open_meteo/open_meteo_weather_provider.cpp b/src/plugin/open_meteo/open_meteo_weather_provider.cpp
index 38a5745..42c0f96 100644
--- a/src/plugin/open_meteo/open_meteo_weather_provider.cpp
+++ b/src/plugin/open_meteo/open_meteo_weather_provider.cpp
@@ -318,8 +318,10 @@ void OpenMeteoWeatherProvider::onResponse(QNetworkReply *reply)
void OpenMeteoWeatherProvider::handleResponseChunk(QByteArray bytes, QVariant userData)
{
+ flatbuffers::Verifier::Options verifierOptions;
+ verifierOptions.check_alignment = false;
flatbuffers::Verifier verifier((const uint8_t *)bytes.constData(),
- (const size_t)bytes.length());
+ (const size_t)bytes.length(), verifierOptions);
bool ok = openmeteo_sdk::VerifyWeatherApiResponseBuffer(verifier);
if (!ok) {
qDebug() << "error in flatbuffer data!";
|