bug fix,music player fix

This commit is contained in:
cuu
2023-01-22 08:33:10 +00:00
parent e59d572610
commit 057bcc86f1
8 changed files with 103 additions and 16 deletions

View File

@@ -411,7 +411,18 @@ func (self *MainScreen) KeyDown(ev *event.Event) {
self.LastKey = ev.Data["Key"]
}
func (self *MainScreen) ShowMsg(content string, blocktime int) {
self.MsgBox.SetText(content)
self.MsgBox.Draw()
self.SwapAndShow()
if blocktime > 0 {
time.BlockDelay(blocktime)
self.CurrentPage.Draw()
self.SwapAndShow()
}
}
func (self *MainScreen) DrawRun() {
self.MsgBox.SetText("Launching....")
self.MsgBox.Draw()