Optimisation pour TT

This commit is contained in:
2025-04-09 11:44:05 +02:00
parent bc538524fb
commit c809c12c9f
10 changed files with 30 additions and 86 deletions
+1 -5
View File
@@ -70,11 +70,7 @@ class PgCopie:
self.copie_editor.triggered.connect(self.open_editor)
self.copie_editor.setEnabled(False)
IPAddr=socket.gethostbyname(socket.gethostname())
if IPAddr[0:11] == "100.100.100":
self.copie_editor.setEnabled(True)
elif IPAddr[0:9] == "192.168.0":
self.copie_editor.setEnabled(True)
elif IPAddr[0:9] == "192.168.1":
if os.access('N:/',os.R_OK):
self.copie_editor.setEnabled(True)
def open_about_dialog(self):