syncToPod static method

Future<bool> syncToPod()

Manually sync current settings to POD. Call this when user closes settings dialog or at app exit.

Implementation

static Future<bool> syncToPod() async {
  try {
    final settings = await _loadFromPrefs();
    return await writeSettingsToPod(_settingsToJson(settings));
  } catch (e) {
    debugPrint('Error syncing settings to POD: $e');
    return false;
  }
}