fix(electron): sync settings from localStorage -> atom -> electron (#5020)

- moved `appSettingAtom` to infra since we now have different packages that depends on it. There is no better place to fit in for now
- use atomEffect to sync setting changes to updater related configs to Electron side
- refactored how Electron reacts to updater config changes.
This commit is contained in:
Peng Xiao
2023-12-08 03:20:02 +00:00
parent 453d4db713
commit fcd43033fe
30 changed files with 441 additions and 343 deletions

View File

@@ -373,6 +373,7 @@
"com.affine.appUpdater.downloading": "Downloading",
"com.affine.appUpdater.installUpdate": "Restart to install update",
"com.affine.appUpdater.openDownloadPage": "Open download page",
"com.affine.appUpdater.downloadUpdate": "Download update",
"com.affine.appUpdater.updateAvailable": "Update available",
"com.affine.appUpdater.whatsNew": "Discover what's new!",
"com.affine.appearanceSettings.clientBorder.description": "Customise the appearance of the client.",