Add Space Mode Settings to Search (#571)

Co-authored-by: slprime <[email protected]>
Co-authored-by: boubou19 <[email protected]>
This commit is contained in:
authored and GitHub committed 2024-12-23 10:21:28 +00:00
1 parent b32f25c2ce
commit ca7030df72
6 files changed
+160 -65

No files matched your search

@@ -29,6 +29,18 @@ public class OptionCycled extends OptionButton {
return prefixed ? translateN(name) : null;
}
@Override
public String getTooltip() {
String tooltip = name + "." + value() + ".tip";
String s = translateN(tooltip);
if (!s.equals(namespaced(tooltip))) {
return s;
}
return super.getTooltip();
}
@Override
public boolean onClick(int button) {
return cycle();