actually use the new delay
This commit is contained in:
parent
6b10c3148c
commit
24c6c36e4f
|
@ -28,7 +28,7 @@
|
||||||
prefs.subscribe('editor.autosaveDelay', (key, val) => {
|
prefs.subscribe('editor.autosaveDelay', (key, val) => {
|
||||||
delay = clamp(val * 1000 | 0, 1000, 2 ** 32 - 1);
|
delay = clamp(val * 1000 | 0, 1000, 2 ** 32 - 1);
|
||||||
const t = debounce.timers.get(updateDraft);
|
const t = debounce.timers.get(updateDraft);
|
||||||
if (t != null) debounce(updateDraft, t);
|
if (t != null) debounce(updateDraft, t ? delay : 0);
|
||||||
}, {runNow: true});
|
}, {runNow: true});
|
||||||
|
|
||||||
function makeRelativeDate(date) {
|
function makeRelativeDate(date) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user