repair method

The check at every start: rewrites each installed manifest that no longer names this host (the app moved or was updated); answers the browsers repaired.

Implementation

Future<List<TomSecretsBrowser>> repair() async {
  final repaired = <TomSecretsBrowser>[];
  for (final s in await states()) {
    if (s.installed && !s.current) {
      await install(s.browser);
      repaired.add(s.browser);
    }
  }
  return repaired;
}