remove wait
This commit is contained in:
parent
18537ff916
commit
f23c9e1caf
7
wire_g
7
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 ;;
|
||||
|
||||
@ -126,7 +126,6 @@ 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 +197,7 @@ connect(){
|
||||
then
|
||||
pkill yad
|
||||
nmcli con mod $selection connection.autoconnect no
|
||||
wg_notify ; wait ; wire_g
|
||||
wg_notify
|
||||
|
||||
fi }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user