Merge pull request #1913 from Northmoc/comet

UNF: Comet, Stellar Pup and support
This commit is contained in:
Anthony Calosa
2022-11-21 07:15:49 +08:00
committed by GitHub
25 changed files with 181 additions and 80 deletions

View File

@@ -927,7 +927,11 @@ public final class CMatchUI
if (enabled && firstEnabled < 0) {
firstEnabled = index;
}
GuiUtils.addMenuItem(menu, FSkin.encodeSymbols(ab.toString(), true),
String s = ab.toString();
if (s.contains("\n")) {
s = s.substring(0, s.indexOf("\n"));
}
GuiUtils.addMenuItem(menu, FSkin.encodeSymbols(s, true),
shortcut > 0 ? KeyStroke.getKeyStroke(shortcut, 0) : null,
new Runnable() {
@Override