mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
Megaswitch highlighting
This commit is contained in:
@@ -71,7 +71,7 @@ public interface ISwitch {
|
||||
return null;
|
||||
}
|
||||
|
||||
default Boolean getRenderConnectedTerminals() {
|
||||
default Boolean getHighlightConnectedTerminals() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ public class SwitchUtils {
|
||||
List<Set<Integer>> connectedGroups = new ArrayList<>();
|
||||
|
||||
// Only process if we have a selected position and should render connections
|
||||
if (switchComponent.getSelectedPosition() == null || !Boolean.TRUE.equals(switchComponent.getRenderConnectedTerminals())) {
|
||||
if (switchComponent.getSelectedPosition() == null || !Boolean.TRUE.equals(switchComponent.getHighlightConnectedTerminals())) {
|
||||
return connectedGroups;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user