mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 12:55:47 +02:00
do not refresh patch panel unless commit files panel is the current side panel
This commit is contained in:
parent
12ca922a41
commit
fbab5bd444
3 changed files with 32 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue