QML: disable networking

This commit is contained in:
selsta
2020-05-14 23:11:31 +02:00
parent afe1ae9b9c
commit 66e769603c
2 changed files with 69 additions and 0 deletions

View File

@@ -69,6 +69,7 @@
#include "qt/TailsOS.h"
#include "qt/KeysFiles.h"
#include "qt/MoneroSettings.h"
#include "qt/NetworkAccessBlockingFactory.h"
// IOS exclusions
#ifndef Q_OS_IOS
@@ -403,6 +404,7 @@ Verify update binary using 'shasum'-compatible (SHA256 algo) output signed by tw
QQmlApplicationEngine engine;
engine.setNetworkAccessManagerFactory(new NetworkAccessBlockingFactory);
OSCursor cursor;
engine.rootContext()->setContextProperty("globalCursor", &cursor);
OSHelper osHelper;