Skip to content

Commit

Permalink
🎨 One-click upgrade of downloaded marketplace packages #8390
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Mar 21, 2024
1 parent 055e011 commit d793155
Showing 1 changed file with 30 additions and 5 deletions.
35 changes: 30 additions & 5 deletions kernel/model/bazzar.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,27 +35,52 @@ func UpdatedPackages(frontend string) (plugins []*bazaar.Plugin, widgets []*baza
wg.Add(5)
go func() {
defer wg.Done()
plugins = InstalledPlugins(frontend, "")
tmp := InstalledPlugins(frontend, "")
for _, plugin := range tmp {
if plugin.Outdated {
plugins = append(plugins, plugin)
}
}
}()

go func() {
defer wg.Done()
widgets = InstalledWidgets("")
tmp := InstalledWidgets("")
for _, widget := range tmp {
if widget.Outdated {
widgets = append(widgets, widget)
}
}
}()

go func() {
defer wg.Done()
icons = InstalledIcons("")
tmp := InstalledIcons("")
for _, icon := range tmp {
if icon.Outdated {
icons = append(icons, icon)
}
}
}()

go func() {
defer wg.Done()
themes = InstalledThemes("")
tmp := InstalledThemes("")
for _, theme := range tmp {
if theme.Outdated {
themes = append(themes, theme)
}
}
}()

go func() {
defer wg.Done()
templates = InstalledTemplates("")
tmp := InstalledTemplates("")
for _, template := range tmp {
if template.Outdated {
templates = append(templates, template)
}
}
}()

wg.Wait()
Expand Down

0 comments on commit d793155

Please sign in to comment.