From 25c4ad76bed827715c99f5e3f9c0f06421a26da8 Mon Sep 17 00:00:00 2001 From: luiscuenca Date: Tue, 9 Jul 2019 16:34:32 -0700 Subject: [PATCH] Fix set process --- launchers/win32/LauncherManager.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/launchers/win32/LauncherManager.cpp b/launchers/win32/LauncherManager.cpp index baf42c7be9..85c258d7b2 100644 --- a/launchers/win32/LauncherManager.cpp +++ b/launchers/win32/LauncherManager.cpp @@ -518,6 +518,7 @@ BOOL LauncherManager::extractApplication() { std::function onProgress = [&](float progress) { updateProgress(ProcessType::UnzipApplication, progress); }; + _currentProcess = ProcessType::UnzipApplication; BOOL success = LauncherUtils::unzipFileOnThread(ProcessType::UnzipApplication, LauncherUtils::cStringToStd(_applicationZipPath), LauncherUtils::cStringToStd(installPath), @@ -578,6 +579,7 @@ BOOL LauncherManager::installContent() { std::function onProgress = [&](float progress) { updateProgress(ProcessType::UnzipContent, progress); }; + _currentProcess = ProcessType::UnzipContent; BOOL success = LauncherUtils::unzipFileOnThread(ProcessType::UnzipContent, contentZipFile, LauncherUtils::cStringToStd(contentPath), onInstallFinished, onProgress); if (success) { @@ -636,6 +638,8 @@ void LauncherManager::onCancel() { if (_currentProcess == ProcessType::UnzipApplication) { _latestVersion = _T(""); _version = _T(""); - createConfigJSON(); + if (!createConfigJSON()) { + TRACE(_T("err")); + } } }