From d537f4e154a40075405b0ab2fed14fbe2eeaac81 Mon Sep 17 00:00:00 2001 From: cirakg Date: Tue, 20 Oct 2026 01:51:05 +0200 Subject: 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 --- source/app/OtpWalletApp.mc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source/app/OtpWalletApp.mc') 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()]; -- cgit v1.2.3