Просмотр исходного кода

fix(ui): redundant notifications when checking single plugin

charlie 4 лет назад
Родитель
Сommit
7e4eff1a92
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      src/main/frontend/handler/plugin.cljs

+ 4 - 1
src/main/frontend/handler/plugin.cljs

@@ -183,7 +183,10 @@
 
 
                            (do
                            (do
                              ;; consume failed download updates
                              ;; consume failed download updates
-                             (state/consume-updates-coming-plugin payload true)
+                             (when (and (not only-check) (not pending?))
+                               (state/consume-updates-coming-plugin payload true))
+
+                             ;; notify human tips
                              (notifications/show!
                              (notifications/show!
                                (str
                                (str
                                  (if (= :error type) "[Install Error]" "")
                                  (if (= :error type) "[Install Error]" "")