Merge pull request #3305

d3102b1 DaemonManager: refactoring - drop singleton usage (xiphon)
This commit is contained in:
luigi1111
2021-01-22 15:07:39 -05:00
3 changed files with 4 additions and 32 deletions

View File

@@ -451,8 +451,8 @@ Verify update binary using 'shasum'-compatible (SHA256 algo) output signed by tw
// Exclude daemon manager from IOS
#ifndef Q_OS_IOS
DaemonManager * daemonManager = DaemonManager::instance();
engine.rootContext()->setContextProperty("daemonManager", daemonManager);
DaemonManager daemonManager;
engine.rootContext()->setContextProperty("daemonManager", &daemonManager);
#endif
engine.rootContext()->setContextProperty("isWindows", isWindows);