1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-29 22:48:24 +02:00

loading animation for confirmation view

This commit is contained in:
Jesse Duffield
2018-07-21 18:37:00 +10:00
parent fab194e923
commit d832eab20c
3 changed files with 32 additions and 5 deletions

View File

@@ -63,10 +63,9 @@ func handleStashPop(g *gocui.Gui, v *gocui.View) error {
}
func handleStashDrop(g *gocui.Gui, v *gocui.View) error {
return createConfirmationPanel(g, v, "Stash drop", "Are you sure you want to drop this stash entry?", func(g *gocui.Gui, v *gocui.View) error {
return stashDo(g, v, "drop")
}, nil)
return nil
return createConfirmationPanel(g, v, "Stash drop", "Are you sure you want to drop this stash entry?", func(g *gocui.Gui, v *gocui.View) error {
return stashDo(g, v, "drop")
}, nil)
}
func stashDo(g *gocui.Gui, v *gocui.View, method string) error {