mirror of
				https://github.com/jesseduffield/lazygit.git
				synced 2025-10-30 23:57:43 +02:00 
			
		
		
		
	Refresh staging- or patch building panel when rendering their respective context
This commit is contained in:
		| @@ -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, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user