fix: clear state when main window closed

pull/3656/head
Tienson Qin 2021-12-29 15:40:25 +08:00 committed by Andelf
parent aa0ce9a3b1
commit df561c0e01
1 changed files with 1 additions and 0 deletions

View File

@ -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