🎨 One-click upgrade of downloaded marketplace packages https://github.com/siyuan-note/siyuan/issues/8390

This commit is contained in:
Daniel 2024-03-21 17:58:53 +08:00
parent 3c1e298c8b
commit 496c44e389
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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
}