Add tooltips on long click (For booleans)

This commit is contained in:
utkabobr
2025-04-02 01:40:34 +03:00
parent 1976ac4899
commit 6ede5931e8
5 changed files with 52 additions and 7 deletions
@@ -34,6 +34,13 @@ public class ConfigObject implements ProfileListFragment.ProfileListItem {
this.values.putAll(from.values);
}
/**
* Note: suitable only from "printer" config
*/
public int getExtruderCount() {
return get("nozzle_diameter") != null ? get("nozzle_diameter").replaceAll("[^.]+", "").length() : 1;
}
public String get(String key) {
return values.get(key);
}