diff --git a/wire_g b/wire_g
index 1cd7b70..a4615d3 100755
--- a/wire_g
+++ b/wire_g
@@ -211,8 +211,7 @@ connect(){
############################################################################################################
############################################################################################################ # --text "Aktiver TUNNEL: $ACTIVE # mit gewünschtes wort wird fett geschrieben.
# Farbe für Variable $ACTIVE festgelegt mit fetter Schrift. (bei --text zwischen " ")
-while true
-do
+
SELECTION=$(yad --no-klick --list --center \
--height=300 --width=60 --title="Wire-G" \
--buttons-layout=center \
@@ -227,7 +226,6 @@ SELECTION=$(yad --no-klick --list --center \
-----------------------------------------------------------------------------------------------------
If no Tunnels are listed,
so they have to import their Tunnel beforehand.")
-done
RET=$?
[[ $? -eq 1 ]] && exit 0
@@ -235,21 +233,25 @@ RET=$?
if [[ $RET -eq 2 ]]
then
up_or_down
+ wire_g
fi
if [[ $RET -eq 3 ]]
then
import_wg
+ wire_g
fi
if [[ $RET -eq 4 ]]
then
remove
+ wire_g
fi
if [[ $RET -eq 5 ]]
then
about
+ wire_g
fi
if [[ $RET -eq 0 ]]
@@ -258,10 +260,12 @@ if [[ $RET -eq 0 ]]
then
wg_stop
nmcli connection up $SELECTION &> ${WG_WDIR}.tmp.txt
- connect
+ connect
+ wire_g
else
nmcli connection up $SELECTION &> ${WG_WDIR}.tmp.txt
connect
+ wire_g
fi
fi
############################################ END ##########################################################