summaryrefslogtreecommitdiffstats
path: root/pkg/gui/gui_common.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-02-23 19:44:48 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-03-17 19:13:40 +1100
commit46e9946854086f170ec01f12daf075e197e420f7 (patch)
tree93ef30013ddde640da6a71f0037a1147e712337b /pkg/gui/gui_common.go
parentd0805616e410bdf37f42737782cdc309ef1dd17a (diff)
refactor credential handling
Diffstat (limited to 'pkg/gui/gui_common.go')
-rw-r--r--pkg/gui/gui_common.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/gui/gui_common.go b/pkg/gui/gui_common.go
index 2f44ebbce..7d8354bf6 100644
--- a/pkg/gui/gui_common.go
+++ b/pkg/gui/gui_common.go
@@ -65,3 +65,7 @@ func (self *guiCommon) Render() {
func (self *guiCommon) OpenSearch() {
_ = self.gui.handleOpenSearch(self.gui.currentViewName())
}
+
+func (self *guiCommon) OnUIThread(f func() error) {
+ self.gui.OnUIThread(f)
+}