From 6759b143c4d625b938a30f2bdbee79e383599bac Mon Sep 17 00:00:00 2001 From: Daniel Scalzi Date: Mon, 2 Jul 2018 02:24:13 -0400 Subject: [PATCH] Show installing progress bar during extractions. --- app/assets/js/scripts/landing.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/app/assets/js/scripts/landing.js b/app/assets/js/scripts/landing.js index 9c14cbe..9c45447 100644 --- a/app/assets/js/scripts/landing.js +++ b/app/assets/js/scripts/landing.js @@ -363,8 +363,8 @@ function asyncSystemScan(launchAfter = true){ // Downloading.. setDownloadPercentage(m.value, m.total, m.percent) } else if(m.task === 1){ - // Download will be at 100%, remove the loading from the OS progress bar. - remote.getCurrentWindow().setProgressBar(-1) + // Show installing progress bar. + remote.getCurrentWindow().setProgressBar(2) // Wait for extration to complete. const eLStr = 'Extracting' @@ -381,6 +381,9 @@ function asyncSystemScan(launchAfter = true){ } else if(m.task === 2){ + // Download & extraction complete, remove the loading from the OS progress bar. + remote.getCurrentWindow().setProgressBar(-1) + // Extraction completed successfully. ConfigManager.setJavaExecutable(m.jPath) ConfigManager.save() @@ -523,6 +526,9 @@ function dlAsync(login = true){ } else if(m.task === 0.7){ + // Show installing progress bar. + remote.getCurrentWindow().setProgressBar(2) + // Download done, extracting. const eLStr = 'Extracting libraries' let dotStr = '' @@ -556,6 +562,7 @@ function dlAsync(login = true){ setOverlayHandler(null) } + remote.getCurrentWindow().setProgressBar(-1) toggleOverlay(true) toggleLaunchArea(false) @@ -564,7 +571,7 @@ function dlAsync(login = true){ } else if(m.task === 1){ - // Download will be at 100%, remove the loading from the OS progress bar. + // Download and extraction complete, remove the loading from the OS progress bar. remote.getCurrentWindow().setProgressBar(-1) if(progressListener != null){ clearInterval(progressListener)