Skip to content

Commit

Permalink
Switch to Files panel after popping a stash
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaller committed Sep 6, 2024
1 parent 4c6c915 commit f5b8619
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/gui/controllers/stash_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ func (self *StashController) handleStashApply(stashEntry *models.StashEntry) err
if err != nil {
return err
}
self.c.Context().Push(self.c.Contexts().Files)
return nil
}

Expand All @@ -137,6 +138,7 @@ func (self *StashController) handleStashPop(stashEntry *models.StashEntry) error
if err != nil {
return err
}
self.c.Context().Push(self.c.Contexts().Files)
return nil
}

Expand Down
1 change: 1 addition & 0 deletions pkg/integration/tests/stash/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ var Apply = NewIntegrationTest(NewIntegrationTestArgs{
)

t.Views().Files().
IsFocused().
Lines(
Contains("file"),
)
Expand Down
1 change: 1 addition & 0 deletions pkg/integration/tests/stash/pop.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ var Pop = NewIntegrationTest(NewIntegrationTestArgs{
IsEmpty()

t.Views().Files().
IsFocused().
Lines(
Contains("file"),
)
Expand Down

0 comments on commit f5b8619

Please sign in to comment.