diff options
author | DerTeta <derteta@gmx.de> | 2021-10-24 21:34:20 +0200 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-12-06 22:37:28 +1100 |
commit | de0e885c65c7d6505055af490e58c21aad59f67e (patch) | |
tree | 8b4c748d5d59fc69f5a604f4c0007e410937bc23 | |
parent | f7ffbbd72a6281b73b68d939b25f98df35296427 (diff) |
Refresh staging- or patch building panel when rendering their respective context
-rw-r--r-- | pkg/gui/context_config.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/gui/context_config.go b/pkg/gui/context_config.go index a3b965a69..d2459ccb5 100644 --- a/pkg/gui/context_config.go +++ b/pkg/gui/context_config.go @@ -141,6 +141,9 @@ func (gui *Gui) contextTree() ContextTree { // TODO: centralise the code here // return gui.refreshStagingPanel(false, -1) }, + OnRender: func() error { + return gui.handleRefreshStagingPanel(false, -1) + }, Kind: MAIN_CONTEXT, ViewName: "main", Key: MAIN_STAGING_CONTEXT_KEY, @@ -151,6 +154,9 @@ func (gui *Gui) contextTree() ContextTree { // TODO: centralise the code here // return gui.refreshPatchBuildingPanel(-1) }, + OnRender: func() error { + return gui.handleRefreshPatchBuildingPanel(-1) + }, Kind: MAIN_CONTEXT, ViewName: "main", Key: MAIN_PATCH_BUILDING_CONTEXT_KEY, |