Skip to content

Commit

Permalink
chore: hold filename format notification
Browse files Browse the repository at this point in the history
  • Loading branch information
cnrpman committed Dec 1, 2022
1 parent 6446425 commit 12f36fb
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/main/frontend/handler/events.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -366,16 +366,18 @@
(state/pub-event! [:graph/dir-gone dir]))))
;; FIXME: an ugly implementation for redirecting to page on new window is restored
(repo-handler/graph-ready! repo)
(when-not config/test?
(js/setTimeout
(fn []
(let [filename-format (state/get-filename-format repo)]
(when (and (util/electron?)
(not (util/ci?))
(not (config/demo-graph?))
(not= filename-format :triple-lowbar))
(state/pub-event! [:ui/notify-outdated-filename-format []]))))
3000)))
;; TODO: Notify user to update filename format when the UX is smooth enough
;; (when-not config/test?
;; (js/setTimeout
;; (fn []
;; (let [filename-format (state/get-filename-format repo)]
;; (when (and (util/electron?)
;; (not (util/ci?))
;; (not (config/demo-graph?))
;; (not= filename-format :triple-lowbar))
;; (state/pub-event! [:ui/notify-outdated-filename-format []]))))
;; 3000))
)

(defmethod handle :notification/show [[_ {:keys [content status clear?]}]]
(notification/show! content status clear?))
Expand Down

0 comments on commit 12f36fb

Please sign in to comment.