Fix: Stable update info polling (#872)

* adjusted sleep between polls to always sleep at least 2s

* fixed tooltip formatting when no updates available

---------

Co-authored-by: Mara <mara.dawn69@gmail.com>
This commit is contained in:
Mara
2025-04-05 19:31:04 +02:00
committed by GitHub
parent 18c383b754
commit 483facfa56
2 changed files with 7 additions and 3 deletions

View File

@@ -13,9 +13,13 @@ has_param() {
wait_for_process_to_finish() {
local process_name="$1"
while pgrep -a "$process_name" >/dev/null; do
sleep 0.1
local pid
while pid=$(pgrep -x "$process_name"); do
wait "$pid" 2>/dev/null || true
done
sleep 2
}
check_arch_updates() {