Hide update library update notification on WS exit

This commit is contained in:
Andrés Moya 2021-01-27 14:58:58 +01:00 committed by Andrey Antukh
parent 849eb7714c
commit bd3921b91b

View file

@ -13,6 +13,7 @@
[app.main.constants :as c]
[app.main.data.history :as udh]
[app.main.data.workspace :as dw]
[app.main.data.messages :as dm]
[app.main.refs :as refs]
[app.main.store :as st]
[app.main.streams :as ms]
@ -121,6 +122,11 @@
(st/emit! (dw/initialize-file project-id file-id))
(st/emitf (dw/finalize-file project-id file-id))))
(mf/use-effect
(fn []
;; Close any non-modal dialog that may be still open
(st/emitf dm/hide)))
(hooks/use-shortcuts dw/shortcuts)
(let [file (mf/deref refs/workspace-file)