fix: prevent displaying the install bar while running the install script
This commit is contained in:
parent
1ce1b8615c
commit
36834a0279
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2024-08-22 08:37+0300\n"
|
||||
"POT-Creation-Date: 2024-08-25 22:43+0300\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
@ -17,11 +17,11 @@ msgstr ""
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: src/callback.c:36 src/callback.c:53
|
||||
#: src/callback.c:39 src/callback.c:56
|
||||
msgid "Failed to sync "
|
||||
msgstr "Failed to sync "
|
||||
|
||||
#: src/callback.c:47 src/cmd/sync.c:46
|
||||
#: src/callback.c:50 src/cmd/sync.c:46
|
||||
msgid "Synced "
|
||||
msgstr "Synced "
|
||||
|
||||
|
@ -3,7 +3,10 @@
|
||||
#include "log.h"
|
||||
|
||||
bool callback_install(lm_ctx_t *ctx, lm_pkg_t *pkg, char *file, size_t current, size_t total, void *data) {
|
||||
bar(current, total);
|
||||
if (current < total)
|
||||
bar(current, total);
|
||||
else
|
||||
bar_free();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user