Commit Graph

1 Commits

Author SHA1 Message Date
Jonas Bark
49d0f134d4 refactor: extract trainer app/target selection side-effects for reuse
Move applyTrainerAppSelection and applyTargetSelection functions to a new
shared lib/utils/trainer_setup.dart file so they can be reused by both
ConfigurationPage and the onboarding wizard.

- applyTrainerAppSelection: stops unsupported emulators, initializes action
  handler, starts enabled connection method
- applyTargetSelection: sets last target, enables OBP/local methods as needed

Configuration page delegates to these shared functions while maintaining
call-site behavior via onUpdate() callback.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-09 22:16:22 +02:00