mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-11 23:22:33 +01:00
🎨 Apps in Chinese mainland app stores no longer provide AI access settings https://github.com/siyuan-note/siyuan/issues/13051
This commit is contained in:
parent
a134f0adb4
commit
e585263970
7 changed files with 28 additions and 2 deletions
|
|
@ -38,6 +38,13 @@ import (
|
|||
"github.com/siyuan-note/logging"
|
||||
)
|
||||
|
||||
var DisabledFeatures []string
|
||||
|
||||
func DisableFeature(feature string) {
|
||||
DisabledFeatures = append(DisabledFeatures, feature)
|
||||
DisabledFeatures = gulu.Str.RemoveDuplicatedElem(DisabledFeatures)
|
||||
}
|
||||
|
||||
// UseSingleLineSave 是否使用单行保存 .sy 和数据库 .json 文件。
|
||||
var UseSingleLineSave = true
|
||||
|
||||
|
|
@ -88,6 +95,9 @@ func logBootInfo() {
|
|||
" * database [ver=%s]\n"+
|
||||
" * workspace directory [%s]",
|
||||
Ver, runtime.GOARCH, plat, os.Getpid(), Mode, WorkingDir, ReadOnly, Container, DatabaseVer, WorkspaceDir)
|
||||
if 0 < len(DisabledFeatures) {
|
||||
logging.LogInfof("disabled features [%s]", strings.Join(DisabledFeatures, ", "))
|
||||
}
|
||||
}
|
||||
|
||||
func RandomSleep(minMills, maxMills int) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue