From 004520dfc4b20b6d583cbe1d6efe09d1066caef6 Mon Sep 17 00:00:00 2001 From: punix Date: Thu, 9 Nov 2023 20:38:28 +0100 Subject: [PATCH] korrektur close on focus --- wire_g | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/wire_g b/wire_g index 52a6124..867d2ae 100755 --- a/wire_g +++ b/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(){ Here is an example: my_wireguard.conf \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 \