update: shorten updates lists in menu separators

Origin commit data
------------------
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
This commit is contained in:
vanhofen
2018-01-06 14:46:09 +01:00
parent 3b6d968f4b
commit e8fc612ccf

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);