🎨 Improve marketplace loading when offline https://github.com/siyuan-note/siyuan/issues/12050

This commit is contained in:
Daniel 2024-08-11 10:01:02 +08:00
parent b908bae496
commit c86ed9bd59
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
7 changed files with 35 additions and 1 deletions

View file

@ -37,6 +37,11 @@ type Widget struct {
func Widgets() (widgets []*Widget) {
widgets = []*Widget{}
isOnline := isBazzarOnline()
if !isOnline {
return
}
stageIndex, err := getStageIndex("widgets")
if nil != err {
return