Icon.st
changeset 4247 c78c58ecfc19
parent 4032 b168a2dd848a
child 4248 f663c36d3bfc
equal deleted inserted replaced
4246:9c1043a7117a 4247:c78c58ecfc19
   684 ! !
   684 ! !
   685 
   685 
   686 !Icon class methodsFor:'startup & release'!
   686 !Icon class methodsFor:'startup & release'!
   687 
   687 
   688 flushCachedIcons
   688 flushCachedIcons
       
   689     |screen|
       
   690 
       
   691     (screen := Screen default) notNil ifTrue:[
       
   692         self releaseCachedIconsFromDevice:screen.
       
   693     ].
   689     KnownIcons removeAll
   694     KnownIcons removeAll
   690 
   695 
   691     "
   696     "
   692      Icon flushCachedIcons
   697      Icon flushCachedIcons
   693     "
   698     "
       
   699 
       
   700     "Modified: / 20-03-2019 / 17:50:34 / Claus Gittinger"
       
   701 !
       
   702 
       
   703 lowSpaceCleanup
       
   704     "cleanup in low-memory situations"
       
   705 
       
   706     self flushCachedIcons
       
   707 
       
   708     "
       
   709      Icon lowSpaceCleanup
       
   710     "
       
   711 
       
   712     "Created: / 20-03-2019 / 17:49:15 / Claus Gittinger"
   694 !
   713 !
   695 
   714 
   696 preSnapshot
   715 preSnapshot
   697     "flush cached icons contents before saving a snapshot
   716     "flush cached icons contents before saving a snapshot
   698      (do not save them in the image)"
   717      (do not save them in the image)"