Skip to content

Commit

Permalink
split windowClosed from windowIsClosing
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanlm committed Jul 28, 2020
1 parent 446009f commit 2548a7d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
11 changes: 9 additions & 2 deletions src/Spec2-Adapters-Morphic/SpMorphicWindowAdapter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ SpMorphicWindowAdapter >> subscribeToAnnouncements: aWindow [
aWindow announcer
when: SpWindowWillClose send: #announce: to: self presenter announcer;
when: SpWindowResizing send: #announce: to: self presenter announcer;
when: WindowClosed send: #windowIsClosing to: self
when: WindowClosed send: #windowClosed to: self
]

{ #category : #icons }
Expand All @@ -227,6 +227,13 @@ SpMorphicWindowAdapter >> title: aString [
self widgetDo: [ :w | w setLabel: (aString ifNotNil: [ :theString | theString localizedForPresenter: self presenter]) ]
]

{ #category : #updating }
SpMorphicWindowAdapter >> windowClosed [

self windowIsClosing.
self presenter windowClosed
]

{ #category : #updating }
SpMorphicWindowAdapter >> windowIsClosing [

Expand All @@ -236,5 +243,5 @@ SpMorphicWindowAdapter >> windowIsClosing [
{ #category : #updating }
SpMorphicWindowAdapter >> windowIsOpening [

self model windowIsOpening
self presenter windowIsOpening
]
8 changes: 4 additions & 4 deletions src/Spec2-Core/SpWindowPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -556,8 +556,9 @@ SpWindowPresenter >> window: aWindow [
]

{ #category : #private }
SpWindowPresenter >> windowClosed [
SpWindowPresenter >> windowClosed [

isClosed := true.
self application windowClosed: self
]

Expand All @@ -573,9 +574,8 @@ SpWindowPresenter >> windowIcon: aForm [

{ #category : #updating }
SpWindowPresenter >> windowIsClosing [
isClosed := true.
self windowClosed.
self presenter windowIsClosing.

self presenter windowIsClosing
]

{ #category : #updating }
Expand Down

0 comments on commit 2548a7d

Please sign in to comment.