diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-28 20:44:36 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-17 19:13:40 +1100 |
commit | a90b6efded49abcfa2516db794d7875b0396f558 (patch) | |
tree | ad9c3738830437064ada223f0978dab1d726b479 /pkg/gui/sub_commits_panel.go | |
parent | fa8571e1f4c349e401542285ea238acdbd9d17ec (diff) |
start refactoring gui
Diffstat (limited to 'pkg/gui/sub_commits_panel.go')
-rw-r--r-- | pkg/gui/sub_commits_panel.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pkg/gui/sub_commits_panel.go b/pkg/gui/sub_commits_panel.go index d023d261f..97f57d158 100644 --- a/pkg/gui/sub_commits_panel.go +++ b/pkg/gui/sub_commits_panel.go @@ -3,6 +3,7 @@ package gui import ( "github.com/jesseduffield/lazygit/pkg/commands/loaders" "github.com/jesseduffield/lazygit/pkg/commands/models" + "github.com/jesseduffield/lazygit/pkg/gui/popup" ) // list panel functions @@ -42,10 +43,10 @@ func (gui *Gui) handleCheckoutSubCommit() error { return nil } - err := gui.ask(askOpts{ - title: gui.Tr.LcCheckoutCommit, - prompt: gui.Tr.SureCheckoutThisCommit, - handleConfirm: func() error { + err := gui.PopupHandler.Ask(popup.AskOpts{ + Title: gui.Tr.LcCheckoutCommit, + Prompt: gui.Tr.SureCheckoutThisCommit, + HandleConfirm: func() error { gui.logAction(gui.Tr.Actions.CheckoutCommit) return gui.handleCheckoutRef(commit.Sha, handleCheckoutRefOptions{}) }, |