Skip to content

Commit

Permalink
Merge origin/development into development
Browse files Browse the repository at this point in the history
  • Loading branch information
MH committed Jun 17, 2024
2 parents 83ff8e5 + 5dbc0cf commit c34f58c
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions src/SpotifyConnect/SPOCSwitchDevice.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ SPOCSwitchDevice class >> itemTextPadding [

{
#category : #building,
#'squeak_changestamp' : 'VE 6/10/2024 22:59'
#'squeak_changestamp' : 'VK 6/17/2024 11:16'
}
SPOCSwitchDevice >> attachButton [

Expand All @@ -32,7 +32,7 @@ SPOCSwitchDevice >> attachButton [
yourself.
button extent: 0@0;
extent: button fullBounds extent.
self addMorph: (SPOCClickable newUsing: button onClick: [:anEvent | self currentDevices])
self addMorph: (SPOCClickable newUsing: button onClick: [:anEvent | self buttonClicked])

]

Expand Down Expand Up @@ -107,6 +107,17 @@ SPOCSwitchDevice >> buildTypeText: aDevice [

]

{
#category : #building,
#'squeak_changestamp' : 'VK 6/17/2024 11:19'
}
SPOCSwitchDevice >> buttonClicked [

self isVisible
ifTrue: [self resultDisplay hide]
ifFalse: [self currentDevices]
]

{
#category : #building,
#'squeak_changestamp' : 'VK 6/10/2024 19:10'
Expand Down Expand Up @@ -176,7 +187,7 @@ SPOCSwitchDevice >> hideResults [

{
#category : #initialization,
#'squeak_changestamp' : 'VK 6/10/2024 19:49'
#'squeak_changestamp' : 'VK 6/17/2024 11:17'
}
SPOCSwitchDevice >> initialize [

Expand All @@ -185,12 +196,21 @@ SPOCSwitchDevice >> initialize [
self color: Color transparent;
deviceItems: OrderedCollection new;
devices: OrderedCollection new;
attachButton;
buildResultDisplay;
attachButton;
extendFully;
yourself
]

{
#category : #building,
#'squeak_changestamp' : 'VK 6/17/2024 11:19'
}
SPOCSwitchDevice >> isVisible [

^ self resultDisplay visible
]

{
#category : #accessing,
#'squeak_changestamp' : 'VK 6/10/2024 19:53'
Expand Down

0 comments on commit c34f58c

Please sign in to comment.