|
@@ -60,12 +60,10 @@ bool LegacyApplication::init()
|
|
|
qDebug() << "Starting Patch managers initialization...";
|
|
|
|
|
|
patch_installer_thread_ = new QThread();
|
|
|
- PatchInstaller::instance().init();
|
|
|
PatchInstaller::instance().moveToThread(patch_installer_thread_);
|
|
|
patch_installer_thread_->start();
|
|
|
|
|
|
patch_downloader_thread_ = new QThread();
|
|
|
- PatchDownloader::instance().init();
|
|
|
PatchDownloader::instance().moveToThread(patch_downloader_thread_);
|
|
|
patch_downloader_thread_->start();
|
|
|
|
|
@@ -94,13 +92,12 @@ void LegacyApplication::InitModules()
|
|
|
AppErrorStatus status = CheckAppPrerequesities();
|
|
|
emit ErrorStatusChanged(status);
|
|
|
|
|
|
- QMetaObject::invokeMethod(&PatchDownloader::instance(), &PatchDownloader::startPatchDownloaderChain, Qt::QueuedConnection);
|
|
|
if (status == E_NO_ERRORS) {
|
|
|
-
|
|
|
-
|
|
|
+ QMetaObject::invokeMethod(&PatchInstaller::instance(), &PatchInstaller::init, Qt::QueuedConnection);
|
|
|
+ QMetaObject::invokeMethod(&PatchDownloader::instance(), &PatchDownloader::init, Qt::QueuedConnection);
|
|
|
+ QMetaObject::invokeMethod(&PatchDownloader::instance(), &PatchDownloader::startPatchDownloaderChain, Qt::QueuedConnection);
|
|
|
} else {
|
|
|
-
|
|
|
-
|
|
|
+ qWarning() << "LegacyApplication: Couldnt init functional modules!";
|
|
|
+ modules_init_timer_.start();
|
|
|
}
|
|
|
-
|
|
|
}
|