From 0c9c590d8f9c49578515ccaf19bb11431cf4e721 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Tue, 3 Mar 2026 09:15:18 +0300 Subject: Enha (playwright): conditionaly install and use tools --- popups.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'popups.go') diff --git a/popups.go b/popups.go index aa08e5e..87359e8 100644 --- a/popups.go +++ b/popups.go @@ -143,7 +143,7 @@ func showAPILinkSelectionPopup() { apiListWidget.SetSelectedFunc(func(index int, mainText string, secondaryText string, shortcut rune) { // Update the API in config cfg.CurrentAPI = mainText - UpdateToolCapabilities() + updateToolCapabilities() // Update model list based on new API // Helper function to get model list for a given API (same as in props_table.go) getModelListForAPI := func(api string) []string { @@ -163,7 +163,7 @@ func showAPILinkSelectionPopup() { if len(newModelList) > 0 && !slices.Contains(newModelList, chatBody.Model) { chatBody.Model = strings.TrimPrefix(newModelList[0], models.LoadedMark) cfg.CurrentModel = chatBody.Model - UpdateToolCapabilities() + updateToolCapabilities() } pages.RemovePage("apiLinkSelectionPopup") app.SetFocus(textArea) -- cgit v1.2.3