mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-04 21:36:45 +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;
|
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue