1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-24 05:36:19 +02:00

Refresh staging- or patch building panel when rendering their respective context

This commit is contained in:
DerTeta 2021-10-24 21:34:20 +02:00 committed by Jesse Duffield
parent f7ffbbd72a
commit de0e885c65

View File

@ -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,