diff --git a/wire_g b/wire_g index 22553d1..3c93ec1 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 ; wait ; wire_g + wg_notify else pkill yad nmcli connection import type wireguard file $wgconf &> ${wg_wdir}.tmp.txt - wg_notify ; wait ; wire_g + wg_notify fi fi ;; @@ -125,8 +125,7 @@ remove(){ --image-on-top --image=${wg_pic}wg-info.png \ --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 + --center --buttons-layout=center --borders=8 else yad --window-icon=${wg_pic}wg-trash.png \ --image-on-top --image=${wg_pic}wg-info.png \ @@ -198,7 +197,7 @@ connect(){ then pkill yad nmcli con mod $selection connection.autoconnect no - wg_notify ; wait ; wire_g + wg_notify fi }