mirror of
https://github.com/DarkMatterCore/nxdumptool.git
synced 2024-11-22 18:26:39 +00:00
OptionsTab: only make even lines focusable in changelog.
This commit is contained in:
parent
cc13552b08
commit
3b892e2179
1 changed files with 9 additions and 1 deletions
|
@ -293,6 +293,7 @@ namespace nxdt::views
|
||||||
|
|
||||||
void OptionsTabUpdateApplicationFrame::DisplayChangelog(void)
|
void OptionsTabUpdateApplicationFrame::DisplayChangelog(void)
|
||||||
{
|
{
|
||||||
|
int line = 0;
|
||||||
std::string item;
|
std::string item;
|
||||||
std::stringstream ss(std::string(this->json_data.changelog));
|
std::stringstream ss(std::string(this->json_data.changelog));
|
||||||
|
|
||||||
|
@ -329,7 +330,14 @@ namespace nxdt::views
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Add line to the changelog view. */
|
/* 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. */
|
/* Register update action. */
|
||||||
|
|
Loading…
Reference in a new issue