diff options
| author | cirakg <cirakg@cirakg.xyz> | 2026-10-20 01:51:05 +0200 |
|---|---|---|
| committer | cirakg <cirakg@cirakg.xyz> | 2026-10-20 01:51:05 +0200 |
| commit | d537f4e154a40075405b0ab2fed14fbe2eeaac81 (patch) | |
| tree | f1fb9b148871901dda96fca11401d6f4d0ee1d59 /source/app/OtpWalletApp.mc | |
| parent | 40d9a1d5c3e85486aea964c1446402a3be6ec05a (diff) | |
feat(settings): apply the Import form from the phone and show results
Import group in the app settings; the processor runs after the first
frame and on settings changes, clears the fields, writes the status,
remembers form hashes and opens the results screen.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'source/app/OtpWalletApp.mc')
| -rw-r--r-- | source/app/OtpWalletApp.mc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/app/OtpWalletApp.mc b/source/app/OtpWalletApp.mc index 7419433..596ccc2 100644 --- a/source/app/OtpWalletApp.mc +++ b/source/app/OtpWalletApp.mc @@ -54,6 +54,15 @@ class OtpWalletApp extends Application.AppBase { return [list, new ListDelegate(list)]; } + // The phone sent new settings (only while the full app runs). + (:typecheck(disableGlanceCheck)) + function onSettingsChanged() as Void { + if (_started) { + AppState.settingsChanged(); + WatchUi.requestUpdate(); + } + } + (:glance) function getGlanceView() as [WatchUi.GlanceView] or [WatchUi.GlanceView, WatchUi.GlanceViewDelegate] or Null { return [new OtpGlanceView()]; |
