mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 20:36:03 +02:00
fix: add condition to if statement
This commit is contained in:
parent
7ddb80a13e
commit
c7fd218308
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue