Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds property to morph when closed and remove it when unhidden #971

Merged
merged 2 commits into from
Jan 31, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,10 @@ SpClosedWindowListPresenter >> addClosedWindow: aModel [
self lastClosedWindows size >= 5 ifTrue: [
self lastClosedWindows removeLast close ].
aModel labelString = 'Last Closed Windows' ifFalse: [
self lastClosedWindows addFirst: aModel ].
self lastClosedWindows addFirst: aModel.
aModel setProperty: #isClosed toValue: true ].
self refresh

]

{ #category : 'initialization' }
Expand Down Expand Up @@ -131,7 +133,7 @@ SpClosedWindowListPresenter >> defaultLayout [
SpClosedWindowListPresenter >> initialize [

super initialize.
self unsubscribeFromWindowEvents .
self unsubscribeFromWindowEvents.
self subscribeToWindowClosedAnnoucements.
removeItemBlock := [ :item |
item ifNotNil: [
Expand All @@ -140,6 +142,7 @@ SpClosedWindowListPresenter >> initialize [
self refresh ] ].
unhideItemBlock := [ :item |
item ifNotNil: [ item visible: true ].
item removeProperty: #isClosed.
self items remove: item.
self refresh ]
]
Expand Down
Loading