mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-31 04:25:40 +00:00
When editing custom collections with really long names, the 'Y' helpsystem text now gets abbreviated
This commit is contained in:
parent
0aaa6f317f
commit
e34f0ac05c
|
@ -474,13 +474,17 @@ std::vector<HelpPrompt> GamelistView::getHelpPrompts()
|
|||
!UIModeController::getInstance()->isUIModeKiosk() &&
|
||||
(Settings::getInstance()->getBool("FavoritesAddButton") ||
|
||||
CollectionSystemsManager::getInstance()->isEditing())) {
|
||||
std::string prompt = CollectionSystemsManager::getInstance()->getEditingCollection();
|
||||
std::string prompt {CollectionSystemsManager::getInstance()->getEditingCollection()};
|
||||
if (prompt.length() > 24)
|
||||
prompt = prompt.substr(0, 22) + "...";
|
||||
prompts.push_back(HelpPrompt("y", prompt));
|
||||
}
|
||||
else if (mRoot->getSystem()->isGameSystem() &&
|
||||
mRoot->getSystem()->getThemeFolder() == "custom-collections" &&
|
||||
CollectionSystemsManager::getInstance()->isEditing()) {
|
||||
std::string prompt = CollectionSystemsManager::getInstance()->getEditingCollection();
|
||||
std::string prompt {CollectionSystemsManager::getInstance()->getEditingCollection()};
|
||||
if (prompt.length() > 24)
|
||||
prompt = prompt.substr(0, 22) + "...";
|
||||
prompts.push_back(HelpPrompt("y", prompt));
|
||||
}
|
||||
return prompts;
|
||||
|
|
Loading…
Reference in a new issue