mirror of
https://github.com/Dark98/SliceBeam.git
synced 2026-07-03 00:38:53 +00:00
Add tooltips on long click (For booleans)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user