refactor(electron): use electron-log, add auto update for windows

This commit is contained in:
Andelf
2022-08-30 16:35:58 +08:00
parent bd384cfef5
commit dd2adac2b1
8 changed files with 32 additions and 29 deletions

View File

@@ -598,7 +598,7 @@
developer-mode? (state/sub [:ui/developer-mode?])
https-agent-opts (state/sub [:electron/user-cfgs :settings/agent])]
[:div.panel-wrap.is-advanced
(when (and util/mac? (util/electron?)) (app-auto-update-row t))
(when (and (or util/mac? util/win32?) (util/electron?)) (app-auto-update-row t))
(usage-diagnostics-row t instrument-disabled?)
(when-not (mobile-util/native-platform?) (developer-mode-row t developer-mode?))
(when (util/electron?) (https-user-agent-row https-agent-opts))