mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-02 20:36:44 +00:00
usb keystore importing #2
This commit is contained in:
parent
9adfcf5806
commit
40d31ff025
4 changed files with 3 additions and 2 deletions
|
@ -38,18 +38,19 @@ public class KeystoreImportController implements Initializable {
|
|||
this.wallet = wallet;
|
||||
importMenu.selectedToggleProperty().addListener((observable, oldValue, selectedToggle) -> {
|
||||
KeystoreSource importType = (KeystoreSource) selectedToggle.getUserData();
|
||||
System.out.println(importType);
|
||||
setImportPane(importType.toString().toLowerCase());
|
||||
});
|
||||
}
|
||||
|
||||
void showUsbDevices(List<Device> devices) {
|
||||
FXMLLoader loader = setImportPane("usb-devices");
|
||||
FXMLLoader loader = setImportPane("hw_usb-devices");
|
||||
UsbDevicesController controller = loader.getController();
|
||||
controller.initializeView(devices);
|
||||
}
|
||||
|
||||
void showUsbError(String message) {
|
||||
FXMLLoader loader = setImportPane("usb-error");
|
||||
FXMLLoader loader = setImportPane("hw_usb-error");
|
||||
UsbScanController controller = loader.getController();
|
||||
controller.initializeView(message);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue