()
| 535 | }, |
| 536 | |
| 537 | async loadConfig() { |
| 538 | if (!window.codesign) { |
| 539 | set({ |
| 540 | configLoaded: true, |
| 541 | errorMessage: tr('errors.rendererDisconnected'), |
| 542 | }); |
| 543 | return; |
| 544 | } |
| 545 | const state = await window.codesign.onboarding.getState(); |
| 546 | set({ config: state, configLoaded: true }); |
| 547 | if (state.hasKey) { |
| 548 | await get().ensureCurrentDesign(); |
| 549 | } |
| 550 | }, |
| 551 | |
| 552 | completeOnboarding(next: OnboardingState) { |
| 553 | recordAction({ type: 'onboarding.complete' }); |