mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-17 00:18:05 +02:00
do not refresh patch panel unless commit files panel is the current side panel
This commit is contained in:
@ -94,8 +94,10 @@ func (gui *Gui) handleDiscardOldFileChange() error {
|
||||
}
|
||||
|
||||
func (gui *Gui) refreshCommitFilesView() error {
|
||||
if err := gui.handleRefreshPatchBuildingPanel(-1); err != nil {
|
||||
return err
|
||||
if gui.currentSideContext().GetKey() == COMMIT_FILES_CONTEXT_KEY {
|
||||
if err := gui.handleRefreshPatchBuildingPanel(-1); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
to := gui.State.Panels.CommitFiles.refName
|
||||
|
Reference in New Issue
Block a user