1package gui 2 3func (gui *Gui) toggleWhitespaceInDiffView() error { 4 gui.State.IgnoreWhitespaceInDiffView = !gui.State.IgnoreWhitespaceInDiffView 5 6 toastMessage := gui.Tr.ShowingWhitespaceInDiffView 7 if gui.State.IgnoreWhitespaceInDiffView { 8 toastMessage = gui.Tr.IgnoringWhitespaceInDiffView 9 } 10 gui.raiseToast(toastMessage) 11 12 return gui.refreshFilesAndSubmodules() 13} 14