                                        :listen [:action auto-build!]
                                        :focusable? false)])]
     ; refresh the builder when the process state changes
-    (add-watch process :refresh-builder (fn [_ _ _ _] (show-builder! path)))
+    (add-watch process
+               :refresh-builder
+               (fn [_ _ _ new-state]
+                 (when (nil? new-state) (reset! last-reload nil))
+                 (show-builder! path)))
     ; add the buttons to the main panel and create shortcuts
     (doto build-group
       (s/config! :north btn-group)

      (ui/config! view id :background (when-not is-set? (color/color :red))))))

(defn toggle-enable!
  [{:keys [view process]} path]
  (let [is-java-project? (lein/is-java-project? path)
        is-running? (not (nil? @process))
        buttons {:#run-button (not is-running?)
                 :#run-repl-button (not is-running?)
                 :#reload-button is-running?
                 :#build-button (not is-running?)
                 :#test-button (not is-running?)
                 :#clean-button (not is-running?)

    {:view build-group
     :close-fn! #(stop! nil)
     :should-remove-fn #(not (utils/is-project-path? path))
     :process process
     :last-reload last-reload}))

(defn show-builder!
  [path]
