usb keystore importing #2

This commit is contained in:
Craig Raw 2020-04-29 12:12:30 +02:00
parent 9adfcf5806
commit 40d31ff025
4 changed files with 3 additions and 2 deletions

View file

@ -38,18 +38,19 @@ public class KeystoreImportController implements Initializable {
this.wallet = wallet; this.wallet = wallet;
importMenu.selectedToggleProperty().addListener((observable, oldValue, selectedToggle) -> { importMenu.selectedToggleProperty().addListener((observable, oldValue, selectedToggle) -> {
KeystoreSource importType = (KeystoreSource) selectedToggle.getUserData(); KeystoreSource importType = (KeystoreSource) selectedToggle.getUserData();
System.out.println(importType);
setImportPane(importType.toString().toLowerCase()); setImportPane(importType.toString().toLowerCase());
}); });
} }
void showUsbDevices(List<Device> devices) { void showUsbDevices(List<Device> devices) {
FXMLLoader loader = setImportPane("usb-devices"); FXMLLoader loader = setImportPane("hw_usb-devices");
UsbDevicesController controller = loader.getController(); UsbDevicesController controller = loader.getController();
controller.initializeView(devices); controller.initializeView(devices);
} }
void showUsbError(String message) { void showUsbError(String message) {
FXMLLoader loader = setImportPane("usb-error"); FXMLLoader loader = setImportPane("hw_usb-error");
UsbScanController controller = loader.getController(); UsbScanController controller = loader.getController();
controller.initializeView(message); controller.initializeView(message);
} }