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 3c1e298 commit 496c44e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions kernel/model/bazzar.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,26 @@ func UpdatedPackages(frontend string) (plugins []*bazaar.Plugin, widgets []*baza
}()

wg.Wait()

if 1 > len(plugins) {
plugins = []*bazaar.Plugin{}
}

if 1 > len(widgets) {
widgets = []*bazaar.Widget{}
}

if 1 > len(icons) {
icons = []*bazaar.Icon{}
}

if 1 > len(themes) {
themes = []*bazaar.Theme{}
}

if 1 > len(templates) {
templates = []*bazaar.Template{}
}
return
}

Expand Down

0 comments on commit 496c44e

Please sign in to comment.