add icons to taskbar control buttons
This commit is contained in:
committed by
Drew Weymouth
parent
aedaa32de4
commit
041e4d3ba7
@@ -449,6 +449,12 @@ func (a *App) SetupWindowsTaskbarButtons(hwnd uintptr) {
|
||||
a.PlaybackManager.SeekNext()
|
||||
}
|
||||
})
|
||||
a.PlaybackManager.OnPlaying(func() {
|
||||
windows.SetTaskbarButtonIsPlaying(true)
|
||||
})
|
||||
f := func() { windows.SetTaskbarButtonIsPlaying(false) }
|
||||
a.PlaybackManager.OnPaused(f)
|
||||
a.PlaybackManager.OnStopped(f)
|
||||
}
|
||||
|
||||
func (a *App) LoginToDefaultServer() error {
|
||||
|
||||
Reference in New Issue
Block a user