feat(settings): organize categories and include optional font storage
This commit is contained in:
1 parent
1408982782
commit
88492fdcde
15 files changed
+134
-59
No files matched your search
@@ -85,6 +85,11 @@ func run(addr string) error {
|
||||
srv.ThemesDir = filepath.Join(dataDir, "themes")
|
||||
srv.PluginsDir = filepath.Join(dataDir, "plugins")
|
||||
srv.FontsDir = filepath.Join(dataDir, "fonts")
|
||||
fontsSize, err := web.FontStorage()
|
||||
if err != nil {
|
||||
return fmt.Errorf("读取内置字体统计失败: %w", err)
|
||||
}
|
||||
srv.BuiltinFontsSize = fontsSize
|
||||
trashDone := make(chan struct{})
|
||||
go func() {
|
||||
defer close(trashDone)
|
||||
|
||||
Reference in new issue
Block a user