mirror of
https://github.com/penpot/penpot.git
synced 2025-05-19 04:16:12 +02:00
✨ Hide update library update notification on WS exit
This commit is contained in:
parent
849eb7714c
commit
bd3921b91b
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue