mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-07 08:07:40 +03:00
Update set message
This commit is contained in:
parent
f330b9dcec
commit
f4ea2c6336
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user