diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 698659b..6fd2664 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,9 +4,9 @@
-
+
-
+
@@ -172,7 +172,15 @@
1724272761629
-
+
+
+ 1724371229008
+
+
+
+ 1724371229008
+
+
@@ -209,6 +217,7 @@
-
+
+
\ No newline at end of file
diff --git a/dict_to_address b/dict_to_address
deleted file mode 100644
index 2a74fd9..0000000
--- a/dict_to_address
+++ /dev/null
@@ -1,3 +0,0 @@
-192.168.178.158/24
-192.168.178.1,
-rj2cexasg9b9oydd.myfritz.net:54775
diff --git a/main.py b/main.py
index 03a9ec8..9fa5d38 100644
--- a/main.py
+++ b/main.py
@@ -131,15 +131,15 @@ class FrameWidgets(ttk.Frame):
os.system('nmcli connection delete ' + str(select_tl))
self.l_box.delete(self.select_tunnel[0])
os.remove(os.environ['HOME'] + '/tester/' + str(select_tl) + '.conf')
- if self.a != '':
+ if self.a != '' and self.a == select_tl:
self.StrVar.set(value='')
StartStopBTN.button_start(self)
self.l_box.update()
- # Address Label
- self.add.set('')
- self.DNS.set('')
- self.enp.set('')
- ShowAddress.show_data(self)
+ # Address Label
+ self.add.set('')
+ self.DNS.set('')
+ self.enp.set('')
+ ShowAddress.show_data(self)
# Button Trash
self.btn_tr = tk.Button(self, image=self.tr_pic, bd=0, command=delete)
diff --git a/wg_func.py b/wg_func.py
index ca5f521..6ccf144 100644
--- a/wg_func.py
+++ b/wg_func.py
@@ -187,11 +187,8 @@ class ImportTunnel:
wg_read = os.environ['HOME'] + '/tester/' + str(self.a) + '.conf'
file = open(wg_read, 'r')
data = ConToDict.covert_to_dict(file)
- self.add = tk.StringVar()
self.add.set('Address: ' + data[0])
- self.DNS = tk.StringVar()
self.DNS.set(' DNS: ' + data[1])
- self.enp = tk.StringVar()
self.enp.set('Endpoint: ' + data[2])
ShowAddress.show_data(self)
file.close()