korrektur close on focus
This commit is contained in:
parent
05451ed204
commit
004520dfc4
8
wire_g
8
wire_g
@ -98,7 +98,6 @@ import_wg(){
|
||||
--title=$"Wire-G" --image-on-top --borders=8 \
|
||||
--text-align=center --buttons-layout=center \
|
||||
--text $"Tunnel name already exists."
|
||||
exit 0
|
||||
done
|
||||
active=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//')
|
||||
if [[ -n $active ]]
|
||||
@ -122,8 +121,6 @@ import_wg(){
|
||||
<b>Here is an example:</b><span color='#0fad0a'><b> my_wireguard.conf</b></span> \n"
|
||||
import_wg ;;
|
||||
esac
|
||||
else
|
||||
wire_g
|
||||
fi
|
||||
|
||||
}
|
||||
@ -175,7 +172,6 @@ remove(){
|
||||
pkill wire_g
|
||||
pkill yad
|
||||
fi
|
||||
wire_g
|
||||
fi }
|
||||
export -f remove
|
||||
|
||||
@ -211,7 +207,7 @@ more(){
|
||||
version=3.1.2
|
||||
selection=$(yad --height=100 --width=80 \
|
||||
--title="Wire-G" --center \
|
||||
--fixed --borders=8 --close-on-unfocus \
|
||||
--borders=8 --close-on-unfocus \
|
||||
--buttons-layout=center --text-align=center \
|
||||
--button=$"Import":"bash -c import_wg" \
|
||||
--button=$"Wire-G Stop":"bash -c up_or_down" \
|
||||
@ -248,7 +244,7 @@ connect(){
|
||||
if selection=$(yad --no-click --list \
|
||||
--center \
|
||||
--height=300 --width=60 --title="Wire-G" \
|
||||
--fixed --buttons-layout=center \
|
||||
--buttons-layout=center \
|
||||
--button=$"OK" --button=$"Cancel" \
|
||||
--button=$"More":"bash -c more" --button=$"Remove":"bash -c remove" --separator="" \
|
||||
--window-icon=${wg_pic}wg-vpn.png \
|
||||
|
Loading…
x
Reference in New Issue
Block a user