mirror of
https://github.com/aclist/dztui.git
synced 2025-04-12 07:13:00 +02:00
Source seen_news and config values
This commit is contained in:
parent
835c3c4fa1
commit
7ec1bac1f0
1 changed files with 5 additions and 4 deletions
9
dzgui.sh
9
dzgui.sh
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
version=2.4.0-rc.3
|
version=2.4.0-rc.4
|
||||||
aid=221100
|
aid=221100
|
||||||
game="dayz"
|
game="dayz"
|
||||||
workshop="steam://url/CommunityFilePage/"
|
workshop="steam://url/CommunityFilePage/"
|
||||||
|
@ -140,13 +140,13 @@ fav="$fav"
|
||||||
name="$name"
|
name="$name"
|
||||||
|
|
||||||
#Set to 1 to perform dry-run and print launch options
|
#Set to 1 to perform dry-run and print launch options
|
||||||
debug="0"
|
debug="$debug"
|
||||||
|
|
||||||
#Toggle stable/testing branch
|
#Toggle stable/testing branch
|
||||||
branch="$branch"
|
branch="$branch"
|
||||||
|
|
||||||
#Last seen news item
|
#Last seen news item
|
||||||
seen_news=""
|
seen_news="$seen_news"
|
||||||
END
|
END
|
||||||
}
|
}
|
||||||
guess_path(){
|
guess_path(){
|
||||||
|
@ -559,6 +559,7 @@ debug_menu(){
|
||||||
debug_sel=$(zenity --list --width=1280 --height=800 --column="Options" --title="DZGUI" --hide-header "${debug_list[@]}" 2>/dev/null)
|
debug_sel=$(zenity --list --width=1280 --height=800 --column="Options" --title="DZGUI" --hide-header "${debug_list[@]}" 2>/dev/null)
|
||||||
if [[ $debug_sel == "${debug_list[0]}" ]]; then
|
if [[ $debug_sel == "${debug_list[0]}" ]]; then
|
||||||
enforce_dl=1
|
enforce_dl=1
|
||||||
|
toggle_branch &&
|
||||||
check_version
|
check_version
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -739,7 +740,7 @@ enforce_dl(){
|
||||||
if [[ $rc -eq 1 ]]; then
|
if [[ $rc -eq 1 ]]; then
|
||||||
exit
|
exit
|
||||||
else
|
else
|
||||||
download_new_version && toggle_branch
|
download_new_version
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
prompt_dl(){
|
prompt_dl(){
|
||||||
|
|
Loading…
Reference in a new issue