null-safe testing of device needspin and needspassphrase

This commit is contained in:
Craig Raw
2021-04-16 11:38:01 +02:00
parent d52bade085
commit 1556b8930c
5 changed files with 16 additions and 8 deletions
@@ -22,7 +22,7 @@ public class UsbStatusButton extends MenuButton {
public void setDevices(List<Device> devices) {
for(Device device : devices) {
MenuItem deviceItem = new MenuItem(device.getModel().toDisplayString());
if(device.getNeedsPinSent()) {
if(device.isNeedsPinSent()) {
deviceItem.setGraphic(getLockIcon());
} else {
deviceItem.setGraphic(getLockOpenIcon());