1
0
Fork 0
mirror of https://github.com/DarkMatterCore/nxdumptool.git synced 2024-11-09 12:11:44 +00:00

OptionsTab: only make even lines focusable in changelog.

This commit is contained in:
Pablo Curiel 2022-07-31 01:47:40 +02:00
parent cc13552b08
commit 3b892e2179

View file

@ -293,6 +293,7 @@ namespace nxdt::views
void OptionsTabUpdateApplicationFrame::DisplayChangelog(void)
{
int line = 0;
std::string item;
std::stringstream ss(std::string(this->json_data.changelog));
@ -329,7 +330,14 @@ namespace nxdt::views
}
/* Add line to the changelog view. */
this->changelog_list->addView(new FocusableLabel(brls::LabelStyle::SMALL, item, true));
if (!(line % 2))
{
this->changelog_list->addView(new FocusableLabel(brls::LabelStyle::SMALL, item, true));
} else {
this->changelog_list->addView(new brls::Label(brls::LabelStyle::SMALL, item, true));
}
line++;
}
/* Register update action. */