mirror of
https://github.com/issadarkthing/gomu.git
synced 2025-05-10 19:29:19 +08:00
fix popup focus
This commit is contained in:
parent
a1e22e15e9
commit
fff1479de7
3
popup.go
3
popup.go
@ -88,12 +88,9 @@ func timedPopup(title string, desc string, timeout time.Duration) {
|
||||
gomu.Pages.AddPage(popupId, topRight(box, 70, 7), true, true)
|
||||
gomu.App.SetFocus(gomu.PrevPanel.(tview.Primitive))
|
||||
|
||||
|
||||
go func() {
|
||||
time.Sleep(timeout)
|
||||
gomu.Pages.RemovePage(popupId)
|
||||
gomu.App.SetFocus(gomu.PrevPanel.(tview.Primitive))
|
||||
gomu.App.Draw()
|
||||
}()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user