Browse Source

usb keystore importing #2

bwt
Craig Raw 5 years ago
parent
commit
40d31ff025
  1. 5
      src/main/java/com/sparrowwallet/sparrow/keystoreimport/KeystoreImportController.java
  2. 0
      src/main/resources/com/sparrowwallet/sparrow/keystoreimport/hw_usb-devices.fxml
  3. 0
      src/main/resources/com/sparrowwallet/sparrow/keystoreimport/hw_usb-error.fxml
  4. 0
      src/main/resources/com/sparrowwallet/sparrow/keystoreimport/hw_usb.fxml

5
src/main/java/com/sparrowwallet/sparrow/keystoreimport/KeystoreImportController.java

@ -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);
} }

0
src/main/resources/com/sparrowwallet/sparrow/keystoreimport/usb-devices.fxml → src/main/resources/com/sparrowwallet/sparrow/keystoreimport/hw_usb-devices.fxml

0
src/main/resources/com/sparrowwallet/sparrow/keystoreimport/usb-error.fxml → src/main/resources/com/sparrowwallet/sparrow/keystoreimport/hw_usb-error.fxml

0
src/main/resources/com/sparrowwallet/sparrow/keystoreimport/usb.fxml → src/main/resources/com/sparrowwallet/sparrow/keystoreimport/hw_usb.fxml

Loading…
Cancel
Save