diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2023-05-01 21:22:43 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-01 21:22:43 +1000 |
commit | c6c4346d4886dbfcfe3a164170f99936734febd8 (patch) | |
tree | 0ff1e9e92078e3c5fc2af98516e52f38aa93644a /pkg/gui/gui_common.go | |
parent | ee9ae8f07f493cc22059f10e04f2459c2d1d32c3 (diff) | |
parent | d675117289cc195b7cae105a808a29383f48d9d4 (diff) |
Merge pull request #2551 from stefanhaller/fix-initial-context-activationv0.38.0
Diffstat (limited to 'pkg/gui/gui_common.go')
-rw-r--r-- | pkg/gui/gui_common.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/gui/gui_common.go b/pkg/gui/gui_common.go index 7c306a0d5..c5ed5e1bf 100644 --- a/pkg/gui/gui_common.go +++ b/pkg/gui/gui_common.go @@ -74,6 +74,10 @@ func (self *guiCommon) IsCurrentContext(c types.Context) bool { return self.CurrentContext().GetKey() == c.GetKey() } +func (self *guiCommon) ActivateContext(context types.Context) error { + return self.gui.activateContext(context, types.OnFocusOpts{}) +} + func (self *guiCommon) GetAppState() *config.AppState { return self.gui.Config.GetAppState() } |