mirror of
https://github.com/makew0rld/amfora.git
synced 2024-12-04 14:46:29 -05:00
Use SendToFront
This commit is contained in:
parent
722d32a385
commit
a458016ce5
@ -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()
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user