mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 06:32:53 +01:00
Reset whitelist when canceling one-shot mode
This commit is contained in:
1 parent
386702fc8a
commit
8304eb0a53
1 file changed
+3
-2
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
version=2.0.0
|
version=2.0.1
|
||||||
aid=221100
|
aid=221100
|
||||||
game="dayz"
|
game="dayz"
|
||||||
workshop="https://steamcommunity.com/sharedfiles/filedetails/?id="
|
workshop="https://steamcommunity.com/sharedfiles/filedetails/?id="
|
||||||
@@ -213,6 +213,7 @@ manual_mod_install(){
|
|||||||
rc=$?
|
rc=$?
|
||||||
if [[ $rc -eq 0 ]]; then
|
if [[ $rc -eq 0 ]]; then
|
||||||
compare
|
compare
|
||||||
|
open_mod_links
|
||||||
else
|
else
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
@@ -330,7 +331,6 @@ launch(){
|
|||||||
steam -applaunch $aid -connect=$ip -nolauncher -nosplash -skipintro -name=$name \"-mod=$mods\"
|
steam -applaunch $aid -connect=$ip -nolauncher -nosplash -skipintro -name=$name \"-mod=$mods\"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
#reset whitelist if canceling connect
|
|
||||||
one_shot_launch=0
|
one_shot_launch=0
|
||||||
}
|
}
|
||||||
browser(){
|
browser(){
|
||||||
@@ -396,6 +396,7 @@ connect_to_fav(){
|
|||||||
sel=$(jq -r '.data[] .attributes | "\(.ip):\(.port)%%\(.id)"' <<< $response)
|
sel=$(jq -r '.data[] .attributes | "\(.ip):\(.port)%%\(.id)"' <<< $response)
|
||||||
echo "[DZGUI] Attempting connection to $fav_label"
|
echo "[DZGUI] Attempting connection to $fav_label"
|
||||||
connect "$sel"
|
connect "$sel"
|
||||||
|
one_shot_launch=0
|
||||||
else
|
else
|
||||||
warn "No fav server configured"
|
warn "No fav server configured"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user