diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2023-12-22 17:31:13 +0100 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2024-01-14 17:45:35 +0100 |
commit | 99a3ccde71ceebcbf8045655ef604a1965e64a5a (patch) | |
tree | bb66b951db6d0bdfa84c82e94aec4105a234fcc8 /pkg/gui/test_mode.go | |
parent | 8ca8a4396859559d818c2b5a51411da7d618ee70 (diff) |
Add ErrorToast function
Diffstat (limited to 'pkg/gui/test_mode.go')
-rw-r--r-- | pkg/gui/test_mode.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/gui/test_mode.go b/pkg/gui/test_mode.go index bc4436053..65009fb78 100644 --- a/pkg/gui/test_mode.go +++ b/pkg/gui/test_mode.go @@ -7,6 +7,7 @@ import ( "github.com/jesseduffield/gocui" "github.com/jesseduffield/lazygit/pkg/gui/popup" + "github.com/jesseduffield/lazygit/pkg/gui/types" "github.com/jesseduffield/lazygit/pkg/integration/components" "github.com/jesseduffield/lazygit/pkg/utils" ) @@ -35,7 +36,7 @@ func (gui *Gui) handleTestMode() { toastChan := make(chan string, 100) gui.PopupHandler.(*popup.PopupHandler).SetToastFunc( - func(message string) { toastChan <- message }) + func(message string, kind types.ToastKind) { toastChan <- message }) test.Run(&GuiDriver{gui: gui, isIdleChan: isIdleChan, toastChan: toastChan}) |