1
0
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:
Stefan Haller
2023-05-18 16:25:26 +02:00
committed by Jesse Duffield
parent 64b2685c2d
commit 401610c0ef
6 changed files with 1 additions and 21 deletions

View File

@ -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{})
}