summaryrefslogtreecommitdiffstats
path: root/pkg/gui/undoing.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-08-23 12:20:49 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-08-23 14:29:18 +1000
commit94601b4dc951de9b1efa08120148d2d9766b637c (patch)
tree0541d8468d78a58f4a2ef069323de475be13d29c /pkg/gui/undoing.go
parent9ca0073cd7680d2417d4bb0a38a7b02df3dfd651 (diff)
use context to return to the correct view
Diffstat (limited to 'pkg/gui/undoing.go')
-rw-r--r--pkg/gui/undoing.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/pkg/gui/undoing.go b/pkg/gui/undoing.go
index 886eb49e3..2224c2b1f 100644
--- a/pkg/gui/undoing.go
+++ b/pkg/gui/undoing.go
@@ -167,10 +167,8 @@ func (gui *Gui) handleHardResetWithAutoStash(commitSha string, options handleHar
if dirtyWorkingTree {
// offer to autostash changes
return gui.ask(askOpts{
- returnToView: gui.getBranchesView(),
- returnFocusOnClose: true,
- title: gui.Tr.SLocalize("AutoStashTitle"),
- prompt: gui.Tr.SLocalize("AutoStashPrompt"),
+ title: gui.Tr.SLocalize("AutoStashTitle"),
+ prompt: gui.Tr.SLocalize("AutoStashPrompt"),
handleConfirm: func() error {
return gui.WithWaitingStatus(options.WaitingStatus, func() error {
if err := gui.GitCommand.StashSave(gui.Tr.SLocalize("StashPrefix") + commitSha); err != nil {