From c7fd2183082d33516a256d7aff3135a9b12b490a Mon Sep 17 00:00:00 2001 From: Andrew Hynes Date: Fri, 3 Jun 2022 16:55:58 -0230 Subject: [PATCH] fix: add condition to if statement --- pkg/gui/controllers/files_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/gui/controllers/files_controller.go b/pkg/gui/controllers/files_controller.go index c7c189542..f1dbfb51c 100644 --- a/pkg/gui/controllers/files_controller.go +++ b/pkg/gui/controllers/files_controller.go @@ -833,7 +833,7 @@ func (self *FilesController) toggleTreeView() error { } func (self *FilesController) handleStashSave(stashFunc func(message string) error, action string, errorMsg string) error { - if !self.helpers.WorkingTree.IsWorkingTreeDirty() { + if action != self.c.Tr.Actions.StashIncludeUntrackedChanges && !self.helpers.WorkingTree.IsWorkingTreeDirty() { return self.c.ErrorMsg(errorMsg) }