mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
🎨 Improve marketplace loading when offline https://github.com/siyuan-note/siyuan/issues/12050
This commit is contained in:
parent
b908bae496
commit
c86ed9bd59
7 changed files with 35 additions and 1 deletions
|
|
@ -39,6 +39,11 @@ type Theme struct {
|
|||
func Themes() (ret []*Theme) {
|
||||
ret = []*Theme{}
|
||||
|
||||
isOnline := isBazzarOnline()
|
||||
if !isOnline {
|
||||
return
|
||||
}
|
||||
|
||||
stageIndex, err := getStageIndex("themes")
|
||||
if nil != err {
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue