mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-19 13:38:06 +01:00
🐛 新建卡包没有持久化 Fix https://github.com/siyuan-note/siyuan/issues/6980
This commit is contained in:
parent
acd9e11fa6
commit
07a53f822c
1 changed files with 5 additions and 0 deletions
|
|
@ -470,6 +470,11 @@ func createDeck(name string) (deck *riff.Deck, err error) {
|
|||
}
|
||||
deck.Name = name
|
||||
Decks[deckID] = deck
|
||||
err = deck.Save()
|
||||
if nil != err {
|
||||
logging.LogErrorf("save deck [%s] failed: %s", deckID, err)
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue