DIRECTOR: skip setting shortcut key when we only read /

This commit is contained in:
ysj1173886760 2021-07-28 20:44:09 +08:00
parent 7168e9a491
commit c57c7b11b2

View File

@ -542,7 +542,9 @@ void MacMenu::createSubMenuFromString(int id, const char *str, int commandId) {
item.deleteChar(shortPtr - item.c_str());
item.deleteChar(shortPtr - item.c_str());
} else {
error("MacMenu::createSubMenuFromString(): Unexpected shortcut: '%s', item '%s' in menu '%s'", shortPtr, item.c_str(), string.c_str());
// if we only have one / without shortcut key, we skip it.
item.deleteChar(shortPtr - item.c_str());
// error("MacMenu::createSubMenuFromString(): Unexpected shortcut: '%s', item '%s' in menu '%s'", shortPtr, item.c_str(), string.c_str());
}
}