|
@@ -363,10 +363,14 @@
|
|
|
(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 (and (util/electron?)
|
|
|
- (not (config/demo-graph?))
|
|
|
- (= :legacy (state/get-filename-format repo)))
|
|
|
- (state/pub-event! [:ui/notify-outdated-filename-format []])))
|
|
|
+ (js/setTimeout
|
|
|
+ (fn []
|
|
|
+ (let [filename-format (state/get-filename-format repo)]
|
|
|
+ (when (and (util/electron?)
|
|
|
+ (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?))
|