mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 Alert users when .sy file or database .json exceed 8MB https://github.com/siyuan-note/siyuan/issues/15451
This commit is contained in:
parent
f3cc641005
commit
eb13c34fe5
22 changed files with 98 additions and 15 deletions
|
|
@ -46,8 +46,14 @@ func DisableFeature(feature string) {
|
|||
DisabledFeatures = gulu.Str.RemoveDuplicatedElem(DisabledFeatures)
|
||||
}
|
||||
|
||||
// UseSingleLineSave 是否使用单行保存 .sy 和数据库 .json 文件。
|
||||
var UseSingleLineSave = true
|
||||
var (
|
||||
UseSingleLineSave = true // UseSingleLineSave 是否使用单行保存 .sy 和数据库 .json 文件。
|
||||
LargeFileWarningSize = 8 // LargeFileWarningSize 大文件警告大小,单位:MB
|
||||
)
|
||||
|
||||
func ExceedLargeFileWarningSize(fileSize int) bool {
|
||||
return fileSize > LargeFileWarningSize*1024*1024
|
||||
}
|
||||
|
||||
// IsUILoaded 是否已经加载了 UI。
|
||||
var IsUILoaded = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue