diff options
| author | Ed Zynda <[email protected]> | 2025-05-23 14:43:30 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-23 06:43:30 -0500 |
| commit | b9ebcea82c262dc834633c2c8f44a94fe8773a15 (patch) | |
| tree | 96ef7e6495574ae0d248a8eafeeb667549d46bad /internal/app | |
| parent | f31f92119d95b7b844a5ec0b05533c079b48a7fa (diff) | |
| download | opencode-b9ebcea82c262dc834633c2c8f44a94fe8773a15.tar.gz opencode-b9ebcea82c262dc834633c2c8f44a94fe8773a15.zip | |
really disable history nav when completions dialog is open (#50)
Diffstat (limited to 'internal/app')
| -rw-r--r-- | internal/app/app.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/internal/app/app.go b/internal/app/app.go index 943f1b24e..41070684e 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -43,6 +43,7 @@ type App struct { // UI state filepickerOpen bool + completionDialogOpen bool } func New(ctx context.Context, conn *sql.DB) (*App, error) { @@ -141,6 +142,16 @@ func (app *App) SetFilepickerOpen(open bool) { app.filepickerOpen = open } +// IsCompletionDialogOpen returns whether the completion dialog is currently open +func (app *App) IsCompletionDialogOpen() bool { + return app.completionDialogOpen +} + +// SetCompletionDialogOpen sets the state of the completion dialog +func (app *App) SetCompletionDialogOpen(open bool) { + app.completionDialogOpen = open +} + // Shutdown performs a clean shutdown of the application func (app *App) Shutdown() { // Cancel all watcher goroutines |
