1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2024-12-28 21:32:36 +01:00

Print map count

This commit is contained in:
aclist 2022-09-13 22:45:28 +09:00
parent 65874ac901
commit 512ddb1d86
2 changed files with 9 additions and 1 deletions

View file

@ -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

View file

@ -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