1
0
mirror of https://github.com/makew0rld/amfora.git synced 2024-09-23 22:45:54 -04:00

Use SendToFront

This commit is contained in:
makeworld 2020-12-25 18:57:07 -05:00
parent 722d32a385
commit a458016ce5
2 changed files with 3 additions and 0 deletions

View File

@ -98,6 +98,7 @@ func openBkmkModal(name string, exists bool, favicon string) (string, int) {
})
panels.ShowPanel("bkmk")
panels.SendToFront("bkmk")
App.SetFocus(bkmkModal)
App.Draw()

View File

@ -130,6 +130,7 @@ func dlChoice(text, u string, resp *gemini.Response) {
} else {
dlChoiceModal.SetText(text)
panels.ShowPanel("dlChoice")
panels.SendToFront("dlChoice")
App.SetFocus(dlChoiceModal)
App.Draw()
choice = <-dlChoiceCh
@ -255,6 +256,7 @@ func downloadURL(dir, u string, resp *gemini.Response) string {
dlModal.ClearButtons()
dlModal.AddButtons([]string{"Downloading..."})
panels.ShowPanel("dl")
panels.SendToFront("dl")
App.SetFocus(dlModal)
App.Draw()