Преглед на файлове

fix(ui): redundant notifications when checking single plugin

charlie преди 4 години
родител
ревизия
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
                              ;; 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!
                                (str
                                  (if (= :error type) "[Install Error]" "")