mirror of
https://github.com/Valkyrie00/bold-brew.git
synced 2026-03-14 14:25:53 +01:00
fix(cache): refresh all data after Homebrew update
Some checks failed
Some checks failed
- 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:
parent
9f92150388
commit
65824fce99
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue