mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-21 11:30:42 +08:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
ec8c1bc03c
@ -397,6 +397,7 @@ export const about = {
|
||||
window.siyuan.config.system.downloadInstallPkg = downloadInstallPkgElement.checked;
|
||||
});
|
||||
});
|
||||
/// #if !BROWSER
|
||||
const autoLaunchElement = about.element.querySelector("#autoLaunch") as HTMLInputElement;
|
||||
autoLaunchElement.addEventListener("change", () => {
|
||||
fetchPost("/api/system/setAutoLaunch", {autoLaunch: autoLaunchElement.checked}, () => {
|
||||
@ -404,6 +405,7 @@ export const about = {
|
||||
app.setLoginItemSettings({openAtLogin: autoLaunchElement.checked});
|
||||
});
|
||||
});
|
||||
/// #endif
|
||||
about.element.querySelector("#aboutConfirm").addEventListener("click", () => {
|
||||
const scheme = (about.element.querySelector("#aboutScheme") as HTMLInputElement).value;
|
||||
const host = (about.element.querySelector("#aboutHost") as HTMLInputElement).value;
|
||||
|
@ -464,6 +464,10 @@ func parseKTree(kramdown []byte) (ret *parse.Tree) {
|
||||
}
|
||||
|
||||
func genTreeID(tree *parse.Tree) {
|
||||
if nil == tree.Root.FirstChild {
|
||||
tree.Root.AppendChild(parse.NewParagraph())
|
||||
}
|
||||
|
||||
ast.Walk(tree.Root, func(n *ast.Node, entering bool) ast.WalkStatus {
|
||||
if !entering {
|
||||
return ast.WalkContinue
|
||||
|
Loading…
Reference in New Issue
Block a user