test2 import noch mit else

This commit is contained in:
Désiré Werner Menrath 2023-11-08 16:31:56 +01:00
parent 5a5d16ba3c
commit 2e3646128b

5
wire_g
View File

@ -77,6 +77,7 @@ import_wg(){
--button="OK" --button=$"Cancel" \
--width=1200 --height=800 \
--window-icon=${wg_pic}wg-import.png \
----filename=*.conf --no-click
--title=$"Wireguard .conf Select file")
case "$wgconf" in
@ -97,7 +98,7 @@ import_wg(){
else
yad --text-align=center --button=$"OK" --title=$"Wireguard .conf Select file" \
--image-on-top --image=${wg_pic}wg-info.png --no-click --filename=*.conf \
--image-on-top --image=${wg_pic}wg-info.png \
--fixed --center --buttons-layout=center --borders=8 \
--text $"<b>Oh, something went wrong.</b> \n
<b>No valid Wireguard file.</b> \n
@ -107,7 +108,7 @@ import_wg(){
fi ;;
*) yad --text-align=center --button=$"OK" --title=$"Wireguard .conf Select file" \
--image-on-top --image=${wg_pic}wg-info.png --no-click --filename=*.conf \
--image-on-top --image=${wg_pic}wg-info.png \
--fixed --center --buttons-layout=center --borders=8 \
--text $"<b>Oh, something went wrong.</b> \n
<b>No valid Wireguard file.</b> \n