|
@@ -29,6 +29,7 @@
|
|
[electron.state :as state]
|
|
[electron.state :as state]
|
|
[electron.utils :as utils]
|
|
[electron.utils :as utils]
|
|
[electron.window :as win]
|
|
[electron.window :as win]
|
|
|
|
+ [goog.functions :refer [debounce]]
|
|
[logseq.common.graph :as common-graph]
|
|
[logseq.common.graph :as common-graph]
|
|
[promesa.core :as p]))
|
|
[promesa.core :as p]))
|
|
|
|
|
|
@@ -501,10 +502,12 @@
|
|
(defmethod handle :gitStatus [_ [_]]
|
|
(defmethod handle :gitStatus [_ [_]]
|
|
(git/short-status!))
|
|
(git/short-status!))
|
|
|
|
|
|
|
|
+(def debounced-configure-auto-commit! (debounce git/configure-auto-commit! 5000))
|
|
(defmethod handle :setGitAutoCommit []
|
|
(defmethod handle :setGitAutoCommit []
|
|
- (git/configure-auto-commit!)
|
|
|
|
|
|
+ (debounced-configure-auto-commit!)
|
|
nil)
|
|
nil)
|
|
|
|
|
|
|
|
+
|
|
(defmethod handle :installMarketPlugin [_ [_ mft]]
|
|
(defmethod handle :installMarketPlugin [_ [_ mft]]
|
|
(plugin/install-or-update! mft))
|
|
(plugin/install-or-update! mft))
|
|
|
|
|