fix(cache): refresh all data after Homebrew update
Some checks failed
Quality / golangci-lint (push) Has been cancelled
Quality / Build (push) Has been cancelled
Quality / Build-1 (push) Has been cancelled
Security / Go Vulnerability Check (push) Has been cancelled
Security / Security Scanner (push) Has been cancelled

- Change SetupData(false) to SetupData(true) in forceRefreshResults()
- This ensures cache files are properly updated after 'Update Homebrew'
- Fixes issue where package versions showed stale data after updates
This commit is contained in:
Vito Castellano 2025-12-31 10:55:49 +01:00
commit 65824fce99
No known key found for this signature in database
GPG key ID: E13085DB38BC5819

View file

@ -85,8 +85,8 @@ func (s *AppService) applyFilter(sourceList *[]models.Package) *[]models.Package
// forceRefreshResults forces a refresh of the Homebrew formulae and cask data and updates the results in the UI.
func (s *AppService) forceRefreshResults() {
// Use cached API data (fast) - only installed status needs refresh
_ = s.dataProvider.SetupData(false)
// Force refresh all data to get up-to-date versions and installed status
_ = s.dataProvider.SetupData(true)
s.packages = s.dataProvider.GetPackages()
// If in Brewfile mode, load tap packages and verify installed status