mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 23:38:49 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
5cbdabddf1
5 changed files with 30 additions and 14 deletions
|
|
@ -437,13 +437,13 @@
|
|||
"downloaded": "已下載",
|
||||
"allOp": "所有操作",
|
||||
"allNotebooks": "所有筆記本",
|
||||
"historyClean": "清理 (clean)",
|
||||
"historyUpdate": "更新 (update)",
|
||||
"historyDelete": "刪除 (delete)",
|
||||
"historyFormat": "格式化 (format)",
|
||||
"historySync": "同步 (sync)",
|
||||
"historyReplace": "替換 (replace)",
|
||||
"historyOutline": "大綱 (outline)",
|
||||
"historyClean": "清理 (clean)",
|
||||
"historyUpdate": "更新 (update)",
|
||||
"historyDelete": "刪除 (delete)",
|
||||
"historyFormat": "排版 (format)",
|
||||
"historySync": "同步 (sync)",
|
||||
"historyReplace": "替換 (replace)",
|
||||
"historyOutline": "大綱 (outline)",
|
||||
"htmlBlockError": "以下 script 執行會影響界面顯示,已經停止運行該腳本",
|
||||
"fileHistory": "文件歷史",
|
||||
"htmlBlockTip": "形成了多個 HTML 塊,為防止資料丟失請使用 <code class='fn__code'><div></code> 標籤包裹並去掉空行",
|
||||
|
|
|
|||
|
|
@ -437,13 +437,13 @@
|
|||
"downloaded": "已下载",
|
||||
"allOp": "所有操作",
|
||||
"allNotebooks": "所有笔记本",
|
||||
"historyClean": "清理 (clean)",
|
||||
"historyUpdate": "更新 (update)",
|
||||
"historyDelete": "删除 (delete)",
|
||||
"historyFormat": "格式化 (format)",
|
||||
"historySync": "同步 (sync)",
|
||||
"historyReplace": "替换 (replace)",
|
||||
"historyOutline": "大纲 (outline)",
|
||||
"historyClean": "清理 (clean)",
|
||||
"historyUpdate": "更新 (update)",
|
||||
"historyDelete": "删除 (delete)",
|
||||
"historyFormat": "排版 (format)",
|
||||
"historySync": "同步 (sync)",
|
||||
"historyReplace": "替换 (replace)",
|
||||
"historyOutline": "大纲 (outline)",
|
||||
"htmlBlockError": "以下 script 执行会影响界面显示,已经停止运行该脚本",
|
||||
"fileHistory": "文件历史",
|
||||
"htmlBlockTip": "形成了多个 HTML 块,为防止数据丢失请使用 <code class='fn__code'><div></code> 标签包裹并去掉空行",
|
||||
|
|
|
|||
|
|
@ -41,6 +41,9 @@ func GetSrcAvIDs(destAvID string) []string {
|
|||
if nil == srcAvIDs {
|
||||
return nil
|
||||
}
|
||||
|
||||
// 排除自己
|
||||
srcAvIDs = gulu.Str.RemoveElem(srcAvIDs, destAvID)
|
||||
return srcAvIDs
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -289,6 +289,13 @@ func GetBlockAttributeViewKeys(blockID string) (ret []*BlockAttributeViewKeys) {
|
|||
return
|
||||
}
|
||||
|
||||
if !attrView.ExistBlock(blockID) {
|
||||
// 比如剪切后粘贴,块 ID 会变,但是属性还在块上,这里做一次数据订正
|
||||
// Auto verify the database name when clicking the block superscript icon https://github.com/siyuan-note/siyuan/issues/10861
|
||||
unbindBlockAv(nil, avID, blockID)
|
||||
return
|
||||
}
|
||||
|
||||
var keyValues []*av.KeyValues
|
||||
for _, kv := range attrView.KeyValues {
|
||||
kValues := &av.KeyValues{Key: kv.Key}
|
||||
|
|
@ -2179,6 +2186,11 @@ func removeAttributeViewBlock(srcIDs []string, avID string, tx *Transaction) (er
|
|||
}
|
||||
}
|
||||
|
||||
relatedAvIDs := av.GetSrcAvIDs(avID)
|
||||
for _, relatedAvID := range relatedAvIDs {
|
||||
util.BroadcastByType("protyle", "refreshAttributeView", 0, "", map[string]interface{}{"id": relatedAvID})
|
||||
}
|
||||
|
||||
err = av.SaveAttributeView(attrView)
|
||||
return
|
||||
}
|
||||
|
|
|
|||
|
|
@ -986,6 +986,7 @@ func clearWorkspaceTemp() {
|
|||
os.RemoveAll(filepath.Join(util.DataDir, ".siyuan", "history"))
|
||||
os.RemoveAll(filepath.Join(util.WorkspaceDir, "backup"))
|
||||
os.RemoveAll(filepath.Join(util.WorkspaceDir, "sync"))
|
||||
os.RemoveAll(filepath.Join(util.DataDir, "%")) // v3.0.6 生成的错误历史文件夹
|
||||
|
||||
logging.LogInfof("cleared workspace temp")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue