From 8304eb0a53231abb072627a2f4e120c552c0f4cb Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Thu, 16 Jun 2022 12:24:10 +0900 Subject: [PATCH] Reset whitelist when canceling one-shot mode --- dzgui.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dzgui.sh b/dzgui.sh index 9015dad..aecb93e 100644 --- a/dzgui.sh +++ b/dzgui.sh @@ -1,7 +1,7 @@ #!/bin/bash set -o pipefail -version=2.0.0 +version=2.0.1 aid=221100 game="dayz" workshop="https://steamcommunity.com/sharedfiles/filedetails/?id=" @@ -213,6 +213,7 @@ manual_mod_install(){ rc=$? if [[ $rc -eq 0 ]]; then compare + open_mod_links else return fi @@ -330,7 +331,6 @@ launch(){ steam -applaunch $aid -connect=$ip -nolauncher -nosplash -skipintro -name=$name \"-mod=$mods\" exit fi - #reset whitelist if canceling connect one_shot_launch=0 } browser(){ @@ -396,6 +396,7 @@ connect_to_fav(){ sel=$(jq -r '.data[] .attributes | "\(.ip):\(.port)%%\(.id)"' <<< $response) echo "[DZGUI] Attempting connection to $fav_label" connect "$sel" + one_shot_launch=0 else warn "No fav server configured" fi