mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 18:36:43 +00:00
enhance(electron): close notification message when test proxy setting
This commit is contained in:
@@ -447,9 +447,10 @@
|
||||
(-> (p/let [result (ipc/ipc :testProxyUrl val opts)]
|
||||
(js->clj result :keywordize-keys true))
|
||||
(p/then (fn [{:keys [code response-ms]}]
|
||||
(notification/clear! :proxy-net-check)
|
||||
(notification/show! (str "Success! Status " code " in " response-ms "ms.") :success)))
|
||||
(p/catch (fn [e]
|
||||
(notification/show! (str e) :error)))
|
||||
(notification/show! (str e) :error false :proxy-net-check)))
|
||||
(p/finally (fn [] (set-testing?! false)))))))]
|
||||
|
||||
[:p.pt-2
|
||||
|
||||
Reference in New Issue
Block a user