diff --git a/wire_g b/wire_g index 635cf10..aef91db 100755 --- a/wire_g +++ b/wire_g @@ -89,13 +89,12 @@ import_wg(){ then wg_stop nmcli connection import type wireguard file $wgconf &> ${wg_wdir}.tmp.txt - wg_notify + wg_notify && wire_g else pkill yad nmcli connection import type wireguard file $wgconf &> ${wg_wdir}.tmp.txt - wg_notify - fi - wire_g + wg_notify && wire_g + fi fi ;; *) yad --button=$"OK" --title=$"Wireguard .conf Select file" \ @@ -199,8 +198,8 @@ connect(){ then pkill yad nmcli con mod $selection connection.autoconnect no - wg_notify - wire_g + wg_notify && wire_g + fi } # function end