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:
parent
f7ffbbd72a
commit
de0e885c65
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user