Update set message

This commit is contained in:
Konstantin Vukolov 2026-01-22 23:51:01 +03:00
parent f330b9dcec
commit f4ea2c6336

View File

@ -173,8 +173,8 @@ void RemoteLibrarySettingsActivity::render() {
renderer.drawText(UI_10_FONT_ID, 20, settingY, menuNames[i], !isSelected); renderer.drawText(UI_10_FONT_ID, 20, settingY, menuNames[i], !isSelected);
// Draw status for URL setting // Draw status for URL setting
if (i == 0) { if (i == 0 || i == 1) {
const char* status = (strlen(SETTINGS.opdsServerUrl) > 0) ? "[Set]" : "[Not Set]"; const char* status = (strlen(i == 0 ? SETTINGS.opdsServerUrl : SETTINGS.opdsPath) > 0) ? "[Set]" : "[Not Set]";
const auto width = renderer.getTextWidth(UI_10_FONT_ID, status); const auto width = renderer.getTextWidth(UI_10_FONT_ID, status);
renderer.drawText(UI_10_FONT_ID, pageWidth - 20 - width, settingY, status, !isSelected); renderer.drawText(UI_10_FONT_ID, pageWidth - 20 - width, settingY, status, !isSelected);
} }