#FEATURE by cg
authorClaus Gittinger <cg@exept.de>
Fri, 06 Mar 2020 20:20:32 +0100
changeset 6838 b0895ffe7bd6
parent 6837 0247bc167e3a
child 6839 58687d2b8474
#FEATURE by cg class: DialogBox class changed: #informUser:during: #informUser:during:cancel: #information:title: #informationText:title: #informationText:title:windowTitle: #warn:title: care for suppressed warning boxes
DialogBox.st
--- a/DialogBox.st	Fri Mar 06 19:30:35 2020 +0100
+++ b/DialogBox.st	Fri Mar 06 20:20:32 2020 +0100
@@ -1232,6 +1232,11 @@
 
     |box|
 
+    UserPreferences current suppressDialogBoxForWarnings ifTrue:[
+        aBlock valueWithOptionalArgument:nil.
+        ^ self
+    ].
+
     [
         box := InfoBox title:aString.
         box hideButtons.
@@ -1263,6 +1268,11 @@
 
     |box subProcess|
 
+    UserPreferences current suppressDialogBoxForWarnings ifTrue:[
+        aBlock valueWithOptionalArgument:nil.
+        ^ self.
+    ].
+
     box := InfoBox title:aString.
     canCancel ifTrue:[
         box okText:(self classResources string:'Abort').
@@ -1316,6 +1326,8 @@
 
     |currentScreen|
 
+    UserPreferences current suppressDialogBoxForWarnings ifTrue:[^ self].
+
     ((currentScreen := Screen current) notNil and:[currentScreen nativeDialogs]) ifTrue:[
         ^ currentScreen 
             nativeInformationOK:aString
@@ -1361,6 +1373,8 @@
 
     |dialog textHolder|
 
+    UserPreferences current suppressDialogBoxForWarnings ifTrue:[^ self].
+
     textHolder := ValueHolder new.
     dialog := Dialog 
                 forRequestText:'' editViewClass:TextView
@@ -1383,6 +1397,8 @@
 
     |dialog textHolder|
 
+    UserPreferences current suppressDialogBoxForWarnings ifTrue:[^ self].
+
     textHolder := ValueHolder new.
     dialog := Dialog 
                 forRequestText:title editViewClass:TextView
@@ -1430,6 +1446,8 @@
 
     |currentScreen|
 
+    UserPreferences current suppressDialogBoxForWarnings ifTrue:[^ self].
+
     ((currentScreen := Screen current) notNil and:[currentScreen nativeDialogs]) ifTrue:[
         ^ currentScreen 
             nativeWarnOK:aString