mirror of
https://github.com/logseq/logseq.git
synced 2026-05-05 03:16:37 +00:00
@@ -909,7 +909,7 @@
|
||||
(when repo
|
||||
(when-let [last-time (get-in @state [:db/last-transact-time repo])]
|
||||
(let [now (util/time-ms)]
|
||||
(>= (- now last-time) 5000)))))
|
||||
(>= (- now last-time) 3000)))))
|
||||
|
||||
(defn input-idle?
|
||||
[repo]
|
||||
@@ -917,7 +917,7 @@
|
||||
(or
|
||||
(when-let [last-time (get-in @state [:editor/last-input-time repo])]
|
||||
(let [now (util/time-ms)]
|
||||
(>= (- now last-time) 5000)))
|
||||
(>= (- now last-time) 3000)))
|
||||
;; not in editing mode
|
||||
(not (get-edit-input-id)))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user