mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-18 11:08:46 +02:00
Fix set process
This commit is contained in:
parent
ec63684866
commit
25c4ad76be
1 changed files with 5 additions and 1 deletions
|
@ -518,6 +518,7 @@ BOOL LauncherManager::extractApplication() {
|
||||||
std::function<void(float)> onProgress = [&](float progress) {
|
std::function<void(float)> onProgress = [&](float progress) {
|
||||||
updateProgress(ProcessType::UnzipApplication, progress);
|
updateProgress(ProcessType::UnzipApplication, progress);
|
||||||
};
|
};
|
||||||
|
_currentProcess = ProcessType::UnzipApplication;
|
||||||
BOOL success = LauncherUtils::unzipFileOnThread(ProcessType::UnzipApplication,
|
BOOL success = LauncherUtils::unzipFileOnThread(ProcessType::UnzipApplication,
|
||||||
LauncherUtils::cStringToStd(_applicationZipPath),
|
LauncherUtils::cStringToStd(_applicationZipPath),
|
||||||
LauncherUtils::cStringToStd(installPath),
|
LauncherUtils::cStringToStd(installPath),
|
||||||
|
@ -578,6 +579,7 @@ BOOL LauncherManager::installContent() {
|
||||||
std::function<void(float)> onProgress = [&](float progress) {
|
std::function<void(float)> onProgress = [&](float progress) {
|
||||||
updateProgress(ProcessType::UnzipContent, progress);
|
updateProgress(ProcessType::UnzipContent, progress);
|
||||||
};
|
};
|
||||||
|
_currentProcess = ProcessType::UnzipContent;
|
||||||
BOOL success = LauncherUtils::unzipFileOnThread(ProcessType::UnzipContent, contentZipFile,
|
BOOL success = LauncherUtils::unzipFileOnThread(ProcessType::UnzipContent, contentZipFile,
|
||||||
LauncherUtils::cStringToStd(contentPath), onInstallFinished, onProgress);
|
LauncherUtils::cStringToStd(contentPath), onInstallFinished, onProgress);
|
||||||
if (success) {
|
if (success) {
|
||||||
|
@ -636,6 +638,8 @@ void LauncherManager::onCancel() {
|
||||||
if (_currentProcess == ProcessType::UnzipApplication) {
|
if (_currentProcess == ProcessType::UnzipApplication) {
|
||||||
_latestVersion = _T("");
|
_latestVersion = _T("");
|
||||||
_version = _T("");
|
_version = _T("");
|
||||||
createConfigJSON();
|
if (!createConfigJSON()) {
|
||||||
|
TRACE(_T("err"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue