mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
🎨 One-click upgrade of downloaded marketplace packages https://github.com/siyuan-note/siyuan/issues/8390
This commit is contained in:
parent
3c1e298c8b
commit
496c44e389
1 changed files with 20 additions and 0 deletions
|
|
@ -84,6 +84,26 @@ func UpdatedPackages(frontend string) (plugins []*bazaar.Plugin, widgets []*baza
|
||||||
}()
|
}()
|
||||||
|
|
||||||
wg.Wait()
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue