Selaa lähdekoodia

:art: 可设置启动时关闭所有页签 https://github.com/siyuan-note/siyuan/issues/5189

Liang Ding 3 vuotta sitten
vanhempi
commit
3e8f1bf0e1
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      kernel/conf/filetree.go

+ 2 - 0
kernel/conf/filetree.go

@@ -29,6 +29,7 @@ type FileTree struct {
 	MaxOpenTabCount         int    `json:"maxOpenTabCount"`         // 最大打开页签数量
 	MaxOpenTabCount         int    `json:"maxOpenTabCount"`         // 最大打开页签数量
 	AllowCreateDeeper       bool   `json:"allowCreateDeeper"`       // 允许创建超过 7 层深度的子文档
 	AllowCreateDeeper       bool   `json:"allowCreateDeeper"`       // 允许创建超过 7 层深度的子文档
 	RemoveDocWithoutConfirm bool   `json:"removeDocWithoutConfirm"` // 删除文档时是否不需要确认
 	RemoveDocWithoutConfirm bool   `json:"removeDocWithoutConfirm"` // 删除文档时是否不需要确认
+	CloseTabsOnStart        bool   `json:"closeTabsOnStart"`        // 启动时关闭所有页签
 
 
 	Sort int `json:"sort"` // 排序方式
 	Sort int `json:"sort"` // 排序方式
 }
 }
@@ -42,5 +43,6 @@ func NewFileTree() *FileTree {
 		MaxListCount:           512,
 		MaxListCount:           512,
 		MaxOpenTabCount:        8,
 		MaxOpenTabCount:        8,
 		AllowCreateDeeper:      false,
 		AllowCreateDeeper:      false,
+		CloseTabsOnStart:       false,
 	}
 	}
 }
 }