Skip to content

Commit

Permalink
Merge pull request #24 from vcatafesta/main
Browse files Browse the repository at this point in the history
sáb 02 set 2023 00:25:51 -04 Vilmar Catafesta ([email protected])
  • Loading branch information
vcatafesta authored Sep 2, 2023
2 parents 8aaeddd + 3d87009 commit 69f1819
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
26 changes: 15 additions & 11 deletions usr/share/bigbashview/bcc/shell/bcclib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 5 additions & 5 deletions usr/share/bigbashview/bcc/shell/bstrlib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit 69f1819

Please sign in to comment.