Commit 259b6907 authored by Vladislav's avatar Vladislav

Fixes for pw_stop_progress_bar

parent 0483902b
...@@ -4153,12 +4153,15 @@ pw_start_progress_bar_install_game () { ...@@ -4153,12 +4153,15 @@ pw_start_progress_bar_install_game () {
} }
pw_stop_progress_bar () { pw_stop_progress_bar () {
sleep 0.1 if [[ -n $PW_YAD_PID_PROGRESS_BAR_BLOCK ]] ; then
for PW_KILL_YAD_PID in "$PW_YAD_PID_PROGRESS_BAR_BLOCK" "$PW_YAD_PID_PROGRESS_BAR_CS" \ kill -s SIGUSR1 "$PW_YAD_PID_PROGRESS_BAR_BLOCK" &>/dev/null
"$PW_YAD_PID_PFX_COVER_UI" "$PW_YAD_PID_PROGRESS_BAR_COVER" elif [[ -n $PW_YAD_PID_PROGRESS_BAR_CS ]] ; then
do kill -s SIGUSR1 "$PW_YAD_PID_PROGRESS_BAR_CS" &>/dev/null
kill -s SIGUSR1 "$PW_KILL_YAD_PID" &>/dev/null elif [[ -n $PW_YAD_PID_PFX_COVER_UI ]] ; then
done kill -s SIGUSR1 "$PW_YAD_PID_PFX_COVER_UI" &>/dev/null
elif [[ -n $PW_YAD_PID_PROGRESS_BAR_COVER ]] ; then
kill -s SIGUSR1 "$PW_YAD_PID_PROGRESS_BAR_COVER" &>/dev/null
fi
unset PW_YAD_PID_PROGRESS_BAR_BLOCK PW_YAD_PID_PROGRESS_BAR_CS \ unset PW_YAD_PID_PROGRESS_BAR_BLOCK PW_YAD_PID_PROGRESS_BAR_CS \
PW_YAD_PID_PFX_COVER_UI PW_YAD_PID_PROGRESS_BAR_COVER PW_YAD_PID_PFX_COVER_UI PW_YAD_PID_PROGRESS_BAR_COVER
return 0 return 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment