Skip to content

Commit

Permalink
fixed device popup on startup and recently played component
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Eichhorn committed Jul 11, 2024
1 parent 400908b commit 98999d6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
7 changes: 4 additions & 3 deletions src/SpotifyConnect/SPOCApp.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -540,13 +540,14 @@ SPOCApp >> setUpTopPanelComponents [

{
#category : #'initialize-release',
#'squeak_changestamp' : 'TL 7/7/2024 01:48'
#'squeak_changestamp' : 'VE 7/11/2024 22:23'
}
SPOCApp >> setUpUserLogin [

self userLogin: (SPOCUserLogin new app: self).
self auth registerSuccessCallback: [self userLogin toggleLogout.
self updatePlaybackState]
self updatePlaybackState.
self showPopUpFor: self currentlyPlaying]


]
Expand All @@ -562,7 +563,7 @@ SPOCApp >> setUpVolumeSlider [

{
#category : #'pop-ups',
#'squeak_changestamp' : 'VE 7/9/2024 10:39'
#'squeak_changestamp' : 'VE 7/11/2024 22:24'
}
SPOCApp >> showPopUpFor: aUiComponent [

Expand Down
7 changes: 3 additions & 4 deletions src/SpotifyConnect/SPOCCurrentlyPlaying.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ SPOCCurrentlyPlaying >> item: aSPOCResultListItem [

{
#category : #updating,
#'squeak_changestamp' : 'VE 7/2/2024 18:28'
#'squeak_changestamp' : 'VE 7/11/2024 22:21'
}
SPOCCurrentlyPlaying >> needsActiveDevice [

Expand All @@ -86,13 +86,12 @@ SPOCCurrentlyPlaying >> track: aSPOCTrack [

{
#category : #updating,
#'squeak_changestamp' : 'VE 7/9/2024 11:06'
#'squeak_changestamp' : 'VE 7/11/2024 22:20'
}
SPOCCurrentlyPlaying >> updatePlaybackState: aState [

super updatePlaybackState: aState.
self isDisabled
ifTrue: [self showPopUp. ^ self].
self isDisabled ifTrue: [^ self].
self track: aState track.
self track hasTertiaryText: false.
self item changeItemTo: self track
Expand Down
2 changes: 1 addition & 1 deletion src/SpotifyConnect/SPOCRecentlyPlayed.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ SPOCRecentlyPlayed >> attachButton [

{
#category : #'api-call',
#'squeak_changestamp' : 'TL 7/11/2024 12:03'
#'squeak_changestamp' : 'VE 7/11/2024 22:17'
}
SPOCRecentlyPlayed >> getRecentlyPlayed [

Expand Down
3 changes: 2 additions & 1 deletion src/SpotifyConnect/SPOCTestAuthorizerProcess.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,12 @@ SPOCTestAuthorizerProcess >> testCallbackErrors [

{
#category : #testing,
#'squeak_changestamp' : 'TL 7/11/2024 16:52'
#'squeak_changestamp' : 'VE 7/11/2024 22:26'
}
SPOCTestAuthorizerProcess >> testStartAuthorization [

| entryPoints |
self auth setupCallbackService.
entryPoints := WebServer default entryPoints.
self assert: ((entryPoints at: (SPOCAuthorizer redirectRoute)) isNil not)
]

0 comments on commit 98999d6

Please sign in to comment.