DaemonManager: refactoring - drop singleton usage

This commit is contained in:
xiphon
2021-01-14 19:14:22 +00:00
parent 3ca5f10fa8
commit d3102b1cc5
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);