mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
Remove the toast when toggling "ignore whitespace"
Now that we visualize the state, the toast is no longer needed.
This commit is contained in:
committed by
Jesse Duffield
parent
64b2685c2d
commit
401610c0ef
@ -25,11 +25,5 @@ func (self *ToggleWhitespaceAction) Call() error {
|
||||
|
||||
self.c.State().SetIgnoreWhitespaceInDiffView(!self.c.State().GetIgnoreWhitespaceInDiffView())
|
||||
|
||||
toastMessage := self.c.Tr.ShowingWhitespaceInDiffView
|
||||
if self.c.State().GetIgnoreWhitespaceInDiffView() {
|
||||
toastMessage = self.c.Tr.IgnoringWhitespaceInDiffView
|
||||
}
|
||||
self.c.Toast(toastMessage)
|
||||
|
||||
return self.c.CurrentSideContext().HandleFocus(types.OnFocusOpts{})
|
||||
}
|
||||
|
Reference in New Issue
Block a user