Skip to content

Commit 379edc7

Browse files
committed
fix data on main reload
1 parent df52dc5 commit 379edc7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/electron/main.cljs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,6 @@
128128
(fn []
129129
(.show ^js @main-window)
130130
(.manage win-state ^js @main-window)
131-
(load-system-fonts!)
132-
(load-webref!)
133131
(send-to-renderer! (if (.isMaximized ^js @main-window)
134132
"windowMaximized"
135133
"windowUnmaximized"))
@@ -139,6 +137,11 @@
139137
(.hide ^js @loading-window)
140138
(.close ^js @loading-window)))
141139

140+
(.on ^js @main-window "ready-to-show"
141+
(fn []
142+
(load-system-fonts!)
143+
(load-webref!)))
144+
142145
(.loadURL ^js @main-window (if config/debug?
143146
"http://localhost:8080"
144147
(.join path "file://" js/__dirname "/public/index.html")))

0 commit comments

Comments
 (0)