Add "no compessable files found" dialog

This commit is contained in:
icenine451 2024-06-26 12:43:33 -04:00
parent 7022193212
commit 00ee6e1279

View file

@ -855,6 +855,7 @@ configurator_compress_multiple_games_dialog() {
find_compatible_games "$1" find_compatible_games "$1"
if [[ ! $(echo "${#all_compressable_games[@]}") == "0" ]]; then
if [[ ! "$target_selection" == "everything" ]]; then # If the user chose to not auto-compress everything if [[ ! "$target_selection" == "everything" ]]; then # If the user chose to not auto-compress everything
choice=$(zenity \ choice=$(zenity \
--list --width=1200 --height=720 --title "RetroDECK Configurator - RetroDECK: Compression Tool" \ --list --width=1200 --height=720 --title "RetroDECK Configurator - RetroDECK: Compression Tool" \
@ -879,6 +880,9 @@ configurator_compress_multiple_games_dialog() {
else # The user chose to auto-compress everything else # The user chose to auto-compress everything
games_to_compress=("${all_compressable_games[@]}") games_to_compress=("${all_compressable_games[@]}")
fi fi
else
configurator_generic_dialog "RetroDECK Configurator - RetroDECK: Compression Tool" "No compressable files were found."
fi
if [[ ! $(echo "${#games_to_compress[@]}") == "0" ]]; then if [[ ! $(echo "${#games_to_compress[@]}") == "0" ]]; then
local post_compression_cleanup=$(configurator_compression_cleanup_dialog) local post_compression_cleanup=$(configurator_compression_cleanup_dialog)