From 512ddb1d865b7db4f83886204cc7201ed17e9ca0 Mon Sep 17 00:00:00 2001 From: aclist Date: Tue, 13 Sep 2022 22:45:28 +0900 Subject: [PATCH] Print map count --- changelog.md | 7 +++++++ dzgui.sh | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index c05a40f..51e5471 100644 --- a/changelog.md +++ b/changelog.md @@ -6,6 +6,13 @@ - Standardize dialogs - Query and connect by IP/port +## [2.7.0-rc.6] 2022-09-13 +### Added +- Add number of maps found to map select menu + +### Fixed +- Strip Unicode spaces in server titles + ## [2.7.0-rc.5] 2022-09-13 ### Changed - Improve server distance algorithm diff --git a/dzgui.sh b/dzgui.sh index d9fb2c3..24c10dc 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -794,7 +794,8 @@ filter_maps(){ echo "# Filtering maps" [[ $ret -eq 98 ]] && return local maps=$(echo "$response" | jq -r '.[].map//empty|ascii_downcase' | sort -u) - local map_sel=$(echo "$maps" | zenity --list --column="Check" --width=1200 --height=800 2>/dev/null --title=DZGUI --text="Select map") + local map_ct=$(echo "$maps" | wc -l) + local map_sel=$(echo "$maps" | zenity --list --column="Check" --width=1200 --height=800 2>/dev/null --title=DZGUI --text="Found $map_ct map types") echo "[DZGUI] Selected '$map_sel'" if [[ -z $map_sel ]]; then ret=97