More efficient handling of multiple fonts, restore data bugfix

This commit is contained in:
Djuri 2024-12-30 00:53:50 +01:00
parent 90d91ba216
commit 13c8e67b4c
9 changed files with 96 additions and 94 deletions

View file

@ -676,6 +676,7 @@ void onApiSettingsGet(AsyncWebServerRequest *request)
root["nostrZapPubkey"] = preferences.getString("nostrZapPubkey", DEFAULT_ZAP_NOTIFY_PUBKEY);
root["ledFlashOnZap"] = preferences.getBool("ledFlashOnZap", DEFAULT_LED_FLASH_ON_ZAP);
root["fontName"] = preferences.getString("fontName", DEFAULT_FONT_NAME);
root["availableFonts"] = FontNames::getAvailableFonts();
// Custom endpoint settings (only used for CUSTOM_SOURCE)
root["customEndpoint"] = preferences.getString("customEndpoint", DEFAULT_CUSTOM_ENDPOINT);
root["customEndpointDisableSSL"] = preferences.getBool("customEndpointDisableSSL", DEFAULT_CUSTOM_ENDPOINT_DISABLE_SSL);