remove --fixed all

This commit is contained in:
Désiré Werner Menrath 2023-11-09 20:41:36 +01:00
parent 004520dfc4
commit 07eb3a6d15

10
wire_g
View File

@ -115,7 +115,7 @@ import_wg(){
*) yad --text-align=center --button=$"OK" --title=$"Wireguard .conf Select file" \ *) yad --text-align=center --button=$"OK" --title=$"Wireguard .conf Select file" \
--image-on-top --window-icon=${wg_pic}wg-stop.png --image=${wg_pic}wg-info.png \ --image-on-top --window-icon=${wg_pic}wg-stop.png --image=${wg_pic}wg-info.png \
--fixed --center --buttons-layout=center --borders=8 \ --center --buttons-layout=center --borders=8 \
--text $"<b>Oh, something went wrong.</b> \n --text $"<b>Oh, something went wrong.</b> \n
<b>No valid Wireguard file.</b> \n <b>No valid Wireguard file.</b> \n
<b>Here is an example:</b><span color='#0fad0a'><b> my_wireguard.conf</b></span> \n" <b>Here is an example:</b><span color='#0fad0a'><b> my_wireguard.conf</b></span> \n"
@ -142,7 +142,7 @@ remove(){
if selection=$(yad --no-click --list --center \ if selection=$(yad --no-click --list --center \
--window-icon=${wg_pic}wg-trash.png \ --window-icon=${wg_pic}wg-trash.png \
--height=300 --width=60 --title="Wire-G Trash" \ --height=300 --width=60 --title="Wire-G Trash" \
--fixed --buttons-layout=center --separator="" \ --buttons-layout=center --separator="" \
--button=$"OK" --button=$"Cancel" \ --button=$"OK" --button=$"Cancel" \
--borders=8 --image-on-top --image=${wg_pic}wg-active.png \ --borders=8 --image-on-top --image=${wg_pic}wg-active.png \
--column=$"Delete" $tunnel \ --column=$"Delete" $tunnel \
@ -159,13 +159,13 @@ remove(){
--image-on-top --image=${wg_pic}wg-info.png \ --image-on-top --image=${wg_pic}wg-info.png \
--text=$"Your tunnel $selection was successfully deleted." \ --text=$"Your tunnel $selection was successfully deleted." \
--text-align=center --button=$"OK" --title "Wire-G Trash" \ --text-align=center --button=$"OK" --title "Wire-G Trash" \
--fixed --center --buttons-layout=center --borders=8 --center --buttons-layout=center --borders=8
else else
yad --window-icon=${wg_pic}wg-trash.png \ yad --window-icon=${wg_pic}wg-trash.png \
--image-on-top --image=${wg_pic}wg-info.png \ --image-on-top --image=${wg_pic}wg-info.png \
--text=$"Oh something went wrong.\nPlease delete tunnel in the network manager." \ --text=$"Oh something went wrong.\nPlease delete tunnel in the network manager." \
--text-align=center --button=$"OK" --title "Wire-G Trash" \ --text-align=center --button=$"OK" --title "Wire-G Trash" \
--fixed --center --buttons-layout=center --borders=8 --center --buttons-layout=center --borders=8
fi fi
if [ "$selection" = "$active" ] if [ "$selection" = "$active" ]
then then
@ -189,7 +189,7 @@ up_or_down(){
yad --image-on-top --image=${wg_pic}wg-info.png \ yad --image-on-top --image=${wg_pic}wg-info.png \
--text=$"There is no active tunnel that you could stop." \ --text=$"There is no active tunnel that you could stop." \
--text-align=center --button=$"OK" --title "Wire-G" \ --text-align=center --button=$"OK" --title "Wire-G" \
--fixed --center --buttons-layout=center --borders=8 --center --buttons-layout=center --borders=8
else else
wg_stop wg_stop