mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 One-click upgrade of downloaded marketplace packages https://github.com/siyuan-note/siyuan/issues/8390
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user