#UI_ENHANCEMENT by cg
authorClaus Gittinger <cg@exept.de>
Wed, 13 Jun 2018 17:33:14 +0200
changeset 23066 caf3599f703e
parent 23065 7fe0bc418071
child 23067 a9b2aa8f652a
#UI_ENHANCEMENT by cg class: UserPreferences added: #logNetCommunications #logNetCommunications:
UserPreferences.st
--- a/UserPreferences.st	Tue Jun 12 23:19:14 2018 +0200
+++ b/UserPreferences.st	Wed Jun 13 17:33:14 2018 +0200
@@ -1068,6 +1068,29 @@
     "
 !
 
+logNetCommunications
+    ^ self at:#logNetCommunications ifAbsent:false
+
+    "Created: / 13-06-2018 / 17:28:35 / Claus Gittinger"
+!
+
+logNetCommunications:aBoolean
+    self at:#logNetCommunications put:aBoolean.
+
+    "/ use Smalltalk at: to avoid prerequisite package dependency
+    (Smalltalk at:#'Net::NetEnvironment') notNil ifTrue:[
+        (Smalltalk at:#'Net::NetEnvironment') verbose:aBoolean.
+    ].    
+
+    "
+     UserPreferences current logNetCommunications
+     UserPreferences current logNetCommunications:true
+     UserPreferences current logNetCommunications:false
+    "
+
+    "Created: / 13-06-2018 / 17:29:42 / Claus Gittinger"
+!
+
 logSOAPRequests
     ^ (self soapLoggingLevel ? 0) > 0
 !
@@ -1623,7 +1646,6 @@
     ^ DiffCodeView
 ! !
 
-
 !UserPreferences methodsFor:'accessing-prefs-UI'!
 
 allowMouseWheelZoom