diff --git a/wire_g b/wire_g index f474c63..13b7a89 100755 --- a/wire_g +++ b/wire_g @@ -137,9 +137,12 @@ remove(){ then yad --window-icon=${WG_PIC}wg-trash.png --undecorated \ --image-on-top --image=${WG_PIC}wg-trash-info.png \ - --text=$"Your Tunnel $SELECTION was successfully deleted." \ + --text=$"Your Tunnel $SELECTION was successfully deleted. \n +Attention! The autostart was reset. \n +If you need the autosart for another tunnel, \n +so please activate it again. \n" \ --text-align=center --button=$"OK" \ - --center --buttons-layout=center --borders=8 + --fixed --buttons-layout=center --borders=8 else yad --window-icon=${WG_PIC}wg-trash.png --undecorated \ --image-on-top --image=${WG_PIC}wg-trash-info.png \ @@ -152,7 +155,18 @@ remove(){ then IFS=$'\n' lines=( $(cat ${WG_WDIR}for-kill_pid.txt) ) kill $lines - fi } + fi + if grep 'TRUE TRUE' ${WG_WDIR}about.txt + then + echo FALSE TRUE > ${WG_WDIR}about.txt + + elif grep 'TRUE FALSE' ${WG_WDIR}about.txt + then + echo FALSE FALSE > ${WG_WDIR}about.txt + fi + rm /home/$USER/.config/autostart/wgonstart.desktop + } + # function end ############################################################################################################