()
| 271 | }); |
| 272 | |
| 273 | async function start() |
| 274 | { |
| 275 | await electronRemote.app.whenReady(); |
| 276 | |
| 277 | storage.start(function() { |
| 278 | |
| 279 | config = storage.get('config'); |
| 280 | _config = copy(config); |
| 281 | |
| 282 | handlebarsContext.config = config; |
| 283 | handlebarsContext.installedFromStore = installedFromStore.check(); |
| 284 | handlebarsContext.macosMAS = macosMAS; |
| 285 | |
| 286 | if(config.zoomFactor != 1) |
| 287 | electron.webFrame.setZoomFactor(Math.round(config.zoomFactor * 100) / 100); |
| 288 | |
| 289 | loadLanguage(config.language); |
| 290 | |
| 291 | template.loadInQuery('body', 'body.html'); |
| 292 | theme.systemNightMode(); |
| 293 | |
| 294 | titleBar.start(); |
| 295 | titleBar.setColors(); |
| 296 | |
| 297 | appBaseLoadedResolve(); |
| 298 | startApp(); |
| 299 | |
| 300 | }); |
| 301 | } |
| 302 | |
| 303 | async function startApp() |
| 304 | { |
no test coverage detected