mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
Make it possible to handle toasts in integration tests
Use it in two selected tests to demonstrate what it looks like.
This commit is contained in:
@ -66,6 +66,10 @@ func (self *PopupHandler) Toast(message string) {
|
||||
self.toastFn(message)
|
||||
}
|
||||
|
||||
func (self *PopupHandler) SetToastFunc(f func(string)) {
|
||||
self.toastFn = f
|
||||
}
|
||||
|
||||
func (self *PopupHandler) WithWaitingStatus(message string, f func(gocui.Task) error) error {
|
||||
self.withWaitingStatusFn(message, f)
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user