mirror of https://github.com/logseq/logseq
fix: clear state when main window closed
parent
aa0ce9a3b1
commit
df561c0e01
|
@ -230,6 +230,7 @@
|
|||
(.on win "close" (fn [e]
|
||||
(when @*quit-dirty?
|
||||
(.preventDefault e)
|
||||
(state/close-window! win)
|
||||
(let [web-contents (. win -webContents)]
|
||||
(.send web-contents "persistent-dbs"))
|
||||
(async/go
|
||||
|
|
Loading…
Reference in New Issue