--close-on-unfocus wieder hinzugefügt

This commit is contained in:
Désiré Werner Menrath 2023-11-08 20:34:06 +01:00
parent 16e1969daf
commit c6d756dc4e

5
wire_g
View File

@ -113,7 +113,6 @@ import_wg(){
import_wg ;; import_wg ;;
esac esac
else else
kill -0 "$PID" &> /dev/null
wire_g wire_g
fi fi
@ -202,7 +201,7 @@ more(){
version=3.1.0 version=3.1.0
selection=$(yad --height=100 --width=80 \ selection=$(yad --height=100 --width=80 \
--title="Wire-G" --center \ --title="Wire-G" --center \
--fixed --borders=8 \ --fixed --borders=8 --close-on-unfocus \
--buttons-layout=center --text-align=center \ --buttons-layout=center --text-align=center \
--button=$"Import":"bash -c import_wg" \ --button=$"Import":"bash -c import_wg" \
--button=$"Wire-G Stop":"bash -c up_or_down" \ --button=$"Wire-G Stop":"bash -c up_or_down" \
@ -213,7 +212,7 @@ more(){
<span color='#626ff1'><b>At all tunnels, the auto start is disabled.</b></span> \n <span color='#626ff1'><b>At all tunnels, the auto start is disabled.</b></span> \n
<span color='#626ff1'><b>Version: $version </b></span> \n <span color='#626ff1'><b>Version: $version </b></span> \n
<span color='#626ff1'><b>Use without warranty.</b></span> \n <span color='#626ff1'><b>Use without warranty.</b></span> \n
<a href='https://git.lunix.dedyn.io/punix/Wire-G'>Download Wire-G </a> \n") <&3 & PID=$! <a href='https://git.lunix.dedyn.io/punix/Wire-G'>Download Wire-G </a> \n")
} }
export -f more export -f more