mirror of https://github.com/logseq/logseq
enhance: disable git auto commit by default
Because many users have trouble with Git with sync services like iCloud/OneDrive.pull/2860/head
parent
7ea00869d9
commit
c60fb5454a
|
@ -199,7 +199,7 @@
|
|||
|
||||
(rum/defcs switch-git-auto-commit-row < rum/reactive
|
||||
[state t]
|
||||
(let [enabled? (not (state/sub [:electron/user-cfgs :git/disable-auto-commit?]))]
|
||||
(let [enabled? (state/get-git-auto-commit-enabled?)]
|
||||
[:div.it.sm:grid.sm:grid-cols-3.sm:gap-4.sm:items-start
|
||||
[:label.block.text-sm.font-medium.leading-5.opacity-70
|
||||
"Enable Git auto commit"]
|
||||
|
|
|
@ -1491,3 +1491,7 @@
|
|||
|
||||
(defn remove-watch-state [key]
|
||||
(remove-watch state key))
|
||||
|
||||
(defn get-git-auto-commit-enabled?
|
||||
[]
|
||||
(false? (sub [:electron/user-cfgs :git/disable-auto-commit?])))
|
||||
|
|
Loading…
Reference in New Issue