update: shorten updates lists in menu separators

Origin commit data
------------------
Branch: ni/coolstream
Commit: 4f24476b49
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-01-06 (Sat, 06 Jan 2018)

Origin message was:
------------------
- update: shorten updates lists in menu separators

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2018-01-06 14:46:09 +01:00
parent f42b1b9095
commit 2c8ac9315b

View File

@@ -309,7 +309,9 @@ bool CFlashUpdate::selectHttpImage(void)
//NI
if (!separator)
{
SelectionWidget.addItem(new CMenuSeparator(CMenuSeparator::STRING | CMenuSeparator::LINE, updates_lists.rbegin()->c_str()));
std::string updates_list = updates_lists.rbegin()->c_str();
updates_list = updates_list.substr(0, updates_list.find("?", 0)); // truncate updates list
SelectionWidget.addItem(new CMenuSeparator(CMenuSeparator::STRING | CMenuSeparator::LINE, updates_list));
separator = true;
}
CUpdateMenuTarget * up = new CUpdateMenuTarget(i, &selected);