From 2f12daa8aacb1d1764b7eac818b06345dcf8a094 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Mon, 15 Dec 2025 21:25:33 -0500 Subject: [PATCH] fix(lazygit): variable naming consistency --- internal/tui/components/dialogs/lazygit/lazygit.go | 6 +++--- internal/tui/tui.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/tui/components/dialogs/lazygit/lazygit.go b/internal/tui/components/dialogs/lazygit/lazygit.go index da7bb6f10677b250c94be60ee2b64d934b982e40..303ba5f622aff6863e511dae3a5315ea6b5095e7 100644 --- a/internal/tui/components/dialogs/lazygit/lazygit.go +++ b/internal/tui/components/dialogs/lazygit/lazygit.go @@ -14,8 +14,8 @@ import ( "github.com/charmbracelet/crush/internal/tui/styles" ) -// DialogID is the unique identifier for the lazygit dialog. -const DialogID dialogs.DialogID = "lazygit" +// LazygitDialogID is the unique identifier for the lazygit dialog. +const LazygitDialogID dialogs.DialogID = "lazygit" // NewDialog creates a new lazygit dialog. The context controls the lifetime // of the lazygit process - when cancelled, the process will be killed. @@ -32,7 +32,7 @@ func NewDialog(ctx context.Context, workingDir string) *termdialog.Dialog { ) return termdialog.New(termdialog.Config{ - ID: DialogID, + ID: LazygitDialogID, Title: "Lazygit", LoadingMsg: "Starting lazygit...", Term: terminal.New(terminal.Config{Context: ctx, Cmd: cmd}), diff --git a/internal/tui/tui.go b/internal/tui/tui.go index 7d2e447b4510cf5e9de4bd0c7eea47f710b3d3e2..3a3ae553695223498ca09e12c91c64017fd46974 100644 --- a/internal/tui/tui.go +++ b/internal/tui/tui.go @@ -306,7 +306,7 @@ func (a *appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) { }) // Lazygit case commands.OpenLazygitMsg: - if a.dialog.ActiveDialogID() == lazygit.DialogID { + if a.dialog.ActiveDialogID() == lazygit.LazygitDialogID { return a, util.CmdHandler(dialogs.CloseDialogMsg{}) } return a, util.CmdHandler(dialogs.OpenDialogMsg{