From e8fc612ccfa882f62cff07a64205dfca69fec4ac Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sat, 6 Jan 2018 14:46:09 +0100 Subject: [PATCH] update: shorten updates lists in menu separators Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/4f24476b494ea7d4a46a00842ddf5d8ac7cb4567 Author: vanhofen Date: 2018-01-06 (Sat, 06 Jan 2018) Origin message was: ------------------ - update: shorten updates lists in menu separators --- src/gui/update.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/update.cpp b/src/gui/update.cpp index c6284e336..0a3b11068 100644 --- a/src/gui/update.cpp +++ b/src/gui/update.cpp @@ -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);