diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-05 12:01:59 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-07 10:52:51 +1100 |
commit | 91fe68576cde3e4582373b255c5eb97cd3065c71 (patch) | |
tree | dce5212c30f0a1b01cc96e7ee10307c80578e7f4 /pkg/gui/commit_files_panel.go | |
parent | bbb5eee23a62162d2695a27f923e1a543852742a (diff) |
refactor
Diffstat (limited to 'pkg/gui/commit_files_panel.go')
-rw-r--r-- | pkg/gui/commit_files_panel.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/commit_files_panel.go b/pkg/gui/commit_files_panel.go index f5c24adc1..6dd894906 100644 --- a/pkg/gui/commit_files_panel.go +++ b/pkg/gui/commit_files_panel.go @@ -63,7 +63,7 @@ func (gui *Gui) handleCheckoutCommitFile() error { return nil } - gui.logSpan(gui.Tr.Spans.CheckoutFile) + gui.logAction(gui.Tr.Actions.CheckoutFile) if err := gui.GitCommand.CheckoutFile(gui.State.CommitFileManager.GetParent(), node.GetPath()); err != nil { return gui.surfaceError(err) } @@ -83,7 +83,7 @@ func (gui *Gui) handleDiscardOldFileChange() error { prompt: gui.Tr.DiscardFileChangesPrompt, handleConfirm: func() error { return gui.WithWaitingStatus(gui.Tr.RebasingStatus, func() error { - gui.logSpan(gui.Tr.Spans.DiscardOldFileChange) + gui.logAction(gui.Tr.Actions.DiscardOldFileChange) if err := gui.GitCommand.DiscardOldFileChanges(gui.State.Commits, gui.State.Panels.Commits.SelectedLineIdx, fileName); err != nil { if err := gui.handleGenericMergeCommandResult(err); err != nil { return err |