diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-12-06 21:08:36 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-12-06 22:37:28 +1100 |
commit | 18283ad41bbb2ac17c8482ddaaf0f31ea9d38a26 (patch) | |
tree | b1690cacecb4605edf3c857052141bbf0199d6e9 /pkg/gui/gui.go | |
parent | 1996eddd9124709431ced14b1650ae5a50963be7 (diff) |
add popup handler for easier testing
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r-- | pkg/gui/gui.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 35b497fc9..4a2248935 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -121,6 +121,8 @@ type Gui struct { ShowExtrasWindow bool suggestionsAsyncHandler *tasks.AsyncHandler + + PopupHandler PopupHandler } type listPanelState struct { @@ -455,6 +457,7 @@ func NewGui(log *logrus.Entry, gitCommand *commands.GitCommand, oSCommand *oscom onRunCommand := gui.GetOnRunCommand() oSCommand.SetOnRunCommand(onRunCommand) gui.OnRunCommand = onRunCommand + gui.PopupHandler = &RealPopupHandler{gui: gui} authors.SetCustomAuthors(gui.Config.GetUserConfig().Gui.AuthorColors) |