diff --git a/wire_g b/wire_g index aef91db..22553d1 100755 --- a/wire_g +++ b/wire_g @@ -89,11 +89,11 @@ import_wg(){ then wg_stop nmcli connection import type wireguard file $wgconf &> ${wg_wdir}.tmp.txt - wg_notify && wire_g + wg_notify ; wait ; wire_g else pkill yad nmcli connection import type wireguard file $wgconf &> ${wg_wdir}.tmp.txt - wg_notify && wire_g + wg_notify ; wait ; wire_g fi fi ;; @@ -126,7 +126,7 @@ remove(){ --text=$"Your tunnel $selection was successfully deleted." \ --text-align=center --button=$"OK" --title "Wire-G Trash" \ --center --buttons-layout=center --borders=8 - + wait ; wire_g else yad --window-icon=${wg_pic}wg-trash.png \ --image-on-top --image=${wg_pic}wg-info.png \ @@ -198,7 +198,7 @@ connect(){ then pkill yad nmcli con mod $selection connection.autoconnect no - wg_notify && wire_g + wg_notify ; wait ; wire_g fi } @@ -236,7 +236,7 @@ if [[ $ret -eq 0 ]] then wg_stop nmcli connection up $selection &> ${wg_wdir}.tmp.txt - connect + connect else nmcli connection up $selection &> ${wg_wdir}.tmp.txt connect