Skip to content

Commit 5be97c6

Browse files
committed
Remove another unnecessary refresh
This was added after this PR comment: #3276 (comment) > Can we do a refresh after this reset so that the screen shows that the patch > has been cancelled? That way, if we cancel on the next popup, the screen will > be in a valid state. I don't understand what "cancel on the next popup" means; there is no further popup after this code.
1 parent 80e2041 commit 5be97c6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/gui/controllers/commits_files_controller.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,6 @@ func (self *CommitFilesController) discard(selectedNodes []*filetree.CommitFileN
313313
// Reset the current patch if there is one.
314314
if self.c.Git().Patch.PatchBuilder.Active() {
315315
self.c.Git().Patch.PatchBuilder.Reset()
316-
if err := self.c.Refresh(types.RefreshOptions{Mode: types.BLOCK_UI}); err != nil {
317-
return err
318-
}
319316
}
320317

321318
for _, node := range selectedNodes {

0 commit comments

Comments
 (0)