自动同步
All checks were successful
Release / windows-x86_64-gnu (push) Successful in 1h5m41s

This commit is contained in:
2026-06-19 11:25:51 +08:00
Unverified
parent 6ce6598a0e
commit 0f8dfa71a9
6 changed files with 341 additions and 22 deletions

View File

@@ -228,10 +228,11 @@ export component AppWindow inherits Window {
in-out property <string> webdav-username-text;
in-out property <string> webdav-password-text;
in-out property <string> webdav-status-text;
in-out property <string> webdav-auto-sync-interval: "0";
callback webdav-test-connection();
callback webdav-push();
callback webdav-pull();
callback webdav-save-settings(bool, string, string, string);
callback webdav-save-settings(bool, string, string, string, string);
callback app-config-save(string, string, string, int, string, string, string, bool, string);
callback app-config-pick-dir();
callback app-background-pick();
@@ -1387,6 +1388,32 @@ export component AppWindow inherits Window {
}
}
HorizontalLayout {
height: 30px;
spacing: 10px;
Text {
width: 148px;
height: parent.height;
text: @tr("Auto-sync interval (min)");
color: Theme.text-secondary;
font-size: Theme.fs-sm;
vertical-alignment: center;
overflow: elide;
}
ConfigTextField {
value <=> root.webdav-auto-sync-interval;
field-width: 80px;
}
Text {
height: parent.height;
text: @tr("0 = off");
color: Theme.text-muted;
font-size: Theme.fs-xs;
vertical-alignment: center;
overflow: elide;
}
}
HorizontalLayout {
height: 30px;
spacing: 10px;
@@ -1439,7 +1466,8 @@ export component AppWindow inherits Window {
root.webdav-enabled,
root.webdav-url-text,
root.webdav-username-text,
root.webdav-password-text);
root.webdav-password-text,
root.webdav-auto-sync-interval);
root.app-config-save(
root.max-tabs-text,
root.terminal-font-size-text,