mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🐛 Data sync may cause data loss on Android 14 https://github.com/siyuan-note/siyuan/issues/10205
This commit is contained in:
parent
9197f69be0
commit
dfe8f1317c
3 changed files with 14 additions and 9 deletions
|
|
@ -23,6 +23,7 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/siyuan-note/filelock"
|
||||
"github.com/siyuan-note/siyuan/kernel/cache"
|
||||
"github.com/siyuan-note/siyuan/kernel/job"
|
||||
"github.com/siyuan-note/siyuan/kernel/model"
|
||||
|
|
@ -79,6 +80,10 @@ func IsHttpServing() bool {
|
|||
return util.HttpServing
|
||||
}
|
||||
|
||||
func SetHttpServerPort(port int) {
|
||||
filelock.AndroidServerPort = port
|
||||
}
|
||||
|
||||
func SetTimezone(container, appDir, timezoneID string) {
|
||||
if "ios" == container {
|
||||
os.Setenv("ZONEINFO", filepath.Join(appDir, "app", "zoneinfo.zip"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue