From c32d51cfa3681bc1f1e2b5054d52798622a5394f Mon Sep 17 00:00:00 2001 From: vcatafesta Date: Sat, 2 Sep 2023 00:25:51 -0400 Subject: [PATCH] =?UTF-8?q?s=C3=A1b=2002=20set=202023=2000:25:51=20-04=20V?= =?UTF-8?q?ilmar=20Catafesta=20(vcatafesta@gmail.com)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- usr/share/bigbashview/bcc/shell/bcclib.sh | 26 +++++++++++++--------- usr/share/bigbashview/bcc/shell/bstrlib.sh | 10 ++++----- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/usr/share/bigbashview/bcc/shell/bcclib.sh b/usr/share/bigbashview/bcc/shell/bcclib.sh index 313d04d..faba36f 100755 --- a/usr/share/bigbashview/bcc/shell/bcclib.sh +++ b/usr/share/bigbashview/bcc/shell/bcclib.sh @@ -303,20 +303,24 @@ function xdebug { local script_name0="${0##*/}[${FUNCNAME[0]}]:${BASH_LINENO[0]}" local script_name1="${0##*/}[${FUNCNAME[1]}]:${BASH_LINENO[1]}" local script_name2="${0##*/}[${FUNCNAME[2]}]:${BASH_LINENO[2]}" - kdialog --title "[xdebug (kdialog)]$0" --yesno "\n${*}\n" --icon dialog-information + + kdialog --title "[xdebug (kdialog)]$0" \ + --yes-label="Não" \ + --no-label="Sim" \ + --warningyesno "\n${*}\n\nContinuar ?\n" result=$? - ((result)) && exit 1 + [[ $result -eq 0 ]] && exit 1 # botões invertidos return $result - # yad --title="[xdebug (yad)]$script_name1" \ - # --text="${*}\n" \ - # --width=400 \ - # --window-icon="$xicon" \ - # --button="Sim:1" \ - # --button="Não:2" - # result=$? - # [[ $result -eq 2 ]] && exit 1 - # return $result +# yad --title="[xdebug (yad)]$script_name1" \ +# --text="${*}\n\nContinuar ?" \ +# --width=400 \ +# --window-icon="$xicon" \ +# --button="Sim:1" \ +# --button="Não:2" +# result=$? +# [[ $result -eq 2 ]] && exit 1 +# return $result } export -f xdebug diff --git a/usr/share/bigbashview/bcc/shell/bstrlib.sh b/usr/share/bigbashview/bcc/shell/bstrlib.sh index a645664..09dd85a 100755 --- a/usr/share/bigbashview/bcc/shell/bstrlib.sh +++ b/usr/share/bigbashview/bcc/shell/bstrlib.sh @@ -185,7 +185,7 @@ function sh_search_flatpak() { fi local COUNT=0 - local LIMITE=10000 + local LIMITE=60 for i in ${search[@]}; do #xdebug "$i" @@ -202,7 +202,7 @@ function sh_search_flatpak() { done # Aguarda todos os resultados antes de exibir para o usuário - wait + # wait if ((COUNT)); then echo "$COUNT" >"$TMP_FOLDER/flatpak_number.html" @@ -335,7 +335,7 @@ function sh_search_snap() { fi local COUNT=0 - local LIMITE=10000 + local LIMITE=60 #xdebug "$search" for i in ${search[@]}; do @@ -352,8 +352,8 @@ function sh_search_snap() { fi done - # Aguarda todos os resultados antes de exibir para o usuário - wait + #Aguarda todos os resultados antes de exibir para o usuário + #wait if ((COUNT)); then echo "$COUNT" >"$TMP_FOLDER/snap_number.html"