SimpleView.st
branchjv
changeset 7855 46203abe7d57
parent 7803 14d6df784ebb
parent 7793 44d58dad99d8
child 7856 7c52e7a9a087
--- a/SimpleView.st	Wed Feb 01 21:42:41 2017 +0000
+++ b/SimpleView.st	Wed Feb 01 22:17:58 2017 +0000
@@ -10383,20 +10383,26 @@
      when problem or warning conditions arise.
      Someone may redefine this to flash its contents (instead of black/white)."
 
+    shown ifFalse:[^ self]. 
+
     self fill:flashColor.
     messageOrNil notNil ifTrue:[
-	self withForeground:self whiteColor do:[
-	    self displayString:messageOrNil centeredAt:(self center).
-	].
+        gc withForeground:self whiteColor do:[
+            self displayString:messageOrNil centeredAt:(self center).
+        ].
     ].
     Delay waitForSeconds:0.1.
+    shown ifFalse:[^ self]. 
+    
     self fill:self whiteColor.
     messageOrNil notNil ifTrue:[
-	self withForeground:self blackColor do:[
-	    self displayString:messageOrNil centeredAt:(self center).
-	].
+        gc withForeground:self blackColor do:[
+            self displayString:messageOrNil centeredAt:(self center).
+        ].
     ].
     Delay waitForSeconds:0.1.
+    shown ifFalse:[^ self]. 
+
     self fill:viewBackground.
     self invalidate