mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-09-05 21:14:34 +02:00
add HookExitCb for OnExitCb
This commit is contained in:
@@ -11,18 +11,23 @@ import (
|
||||
*/
|
||||
"github.com/clockworkpi/LauncherGoDev/sysgo/UI"
|
||||
//"github.com/clockworkpi/LauncherGoDev/sysgo/DBUS"
|
||||
"github.com/fhs/gompd/v2/mpd"
|
||||
|
||||
)
|
||||
|
||||
/******************************************************************************/
|
||||
type MusicPlayerPlugin struct {
|
||||
UI.Plugin
|
||||
MusicPlayerPage *MusicPlayerPage
|
||||
MpdClient *mpd.Client
|
||||
}
|
||||
|
||||
func (self *MusicPlayerPlugin) Init(main_screen *UI.MainScreen) {
|
||||
self.MusicPlayerPage = NewMusicPlayerPage()
|
||||
self.MusicPlayerPage.SetScreen(main_screen)
|
||||
self.MusicPlayerPage.SetName("Music Player")
|
||||
self.MpdClient = nil
|
||||
self.MusicPlayerPage.MpdClient = self.MpdClient
|
||||
self.MusicPlayerPage.Init()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user