Added temp unpacking notification to progress bar

because for some reasons it lags a bit
This commit is contained in:
Observer KRypt0n_ 2021-11-26 22:01:07 +02:00
parent 16504a499a
commit 377f458ed5
No known key found for this signature in database
GPG key ID: DC5D4EC1303465DA
2 changed files with 5 additions and 1 deletions

View file

@ -19,7 +19,7 @@
<body>
<div id="downloader-panel" class="dark" style="display: none">
<div id="downloader-label">
<span id="downloaded">Downloading...</span>
<span id="downloaded">Downloading</span>
<span id="speed"></span>
<span id="eta"></span>
</div>

View file

@ -112,6 +112,10 @@ $(() => {
LauncherUI.initProgressBar();
// That is a temp solution because for some reasons
// unpacker takes some time to understand what's happening with its life
$('#downloaded').text(LauncherUI.i18n.translate('Unpacking'));
await unpacker(
path.join(constants.launcherDir, defaultRunner.name),
defaultRunner.makeFolder ?