diff --git a/main.cpp b/main.cpp index fe42cb61..1853ab71 100644 --- a/main.cpp +++ b/main.cpp @@ -44,6 +44,7 @@ #include "TransactionHistory.h" #include "model/TransactionHistoryModel.h" #include "model/TransactionHistorySortFilterModel.h" +#include "daemon/DaemonManager.h" int main(int argc, char *argv[]) @@ -88,6 +89,8 @@ int main(int argc, char *argv[]) qmlRegisterUncreatableType("moneroComponents.TransactionInfo", 1, 0, "TransactionInfo", "TransactionHistory can't be instantiated directly"); + qmlRegisterUncreatableType("moneroComponents.DaemonManager", 1, 0, "DaemonManager", + "DaemonManager can't be instantiated directly"); qRegisterMetaType(); qRegisterMetaType(); qRegisterMetaType(); @@ -105,6 +108,8 @@ int main(int argc, char *argv[]) engine.addImageProvider(QLatin1String("qrcode"), new QRCodeImageProvider()); + engine.rootContext()->setContextProperty("daemonManager", DaemonManager::instance()); + // export to QML monero accounts root directory // wizard is talking about where // to save the wallet file (.keys, .bin), they have to be user-accessible for