Skip to content

Commit

Permalink
+ ToImage>>isLoading
Browse files Browse the repository at this point in the history
  • Loading branch information
plantec committed Feb 9, 2025
1 parent 66014d9 commit c670fc5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Toplo-Widget-Image/ToImage.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ ToImage >> fromUrl: anUrl [
on: Error
do: [ ]) isNil and: [ timesRetry < 5 ] ]
whileTrue: [ timesRetry := timesRetry + 1 ].
loader := nil.
contents
ifNil: [
self innerImage: ToMiscellaneousIcons round_close ]
Expand All @@ -114,7 +113,8 @@ ToImage >> fromUrl: anUrl [
ifTrue: [ contents ]
ifFalse: [
Form fromBinaryStream: contents readStream ].
self innerImage: source ] ] newProcess.
self innerImage: source ].
loader := nil ] newProcess.
loader priority: Processor userBackgroundPriority.
loader name: 'ToImage loader'.
loader resume
Expand Down Expand Up @@ -211,6 +211,12 @@ ToImage >> innerSvgImageColor: aColor [
ifNone: [ ]
]

{ #category : #'private loading' }
ToImage >> isLoading [

^ loader notNil
]

{ #category : #rotation }
ToImage >> rotateBy: aDegreesAngle [

Expand Down

0 comments on commit c670fc5

Please sign in to comment.