Skip to content

Commit

Permalink
app: Allow lower sync interval for local sync
Browse files Browse the repository at this point in the history
 * The interval lock doesn't make much sense for a local disk where
   there's no overhead to writing to it more frequently.
  • Loading branch information
DD3Boh committed Jan 17, 2025
1 parent 8d9cc43 commit 67f1f36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/config/repos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ export const repos = {
const syncIntervalElement = repos.element.querySelector("#syncInterval") as HTMLInputElement;
syncIntervalElement.addEventListener("change", () => {
let interval = parseInt(syncIntervalElement.value);
if (30 > interval) {
if (30 > interval && window.siyuan.config.sync.provider != 4) {
interval = 30;
}
if (43200 < interval) {
Expand Down

0 comments on commit 67f1f36

Please sign in to comment.