use of io.bitsquare.gui.main.overlays.windows.EnterPrivKeyWindow in project bitsquare by bitsquare.
the class ArbitratorRegistrationView method onTabSelection.
public void onTabSelection(boolean isSelectedTab) {
if (isSelectedTab) {
model.myArbitratorProperty.addListener(arbitratorChangeListener);
updateLanguageList();
if (model.registrationPubKeyAsHex.get() == null && enterPrivKeyWindow == null) {
enterPrivKeyWindow = new EnterPrivKeyWindow();
enterPrivKeyWindow.onClose(() -> enterPrivKeyWindow = null).onKey(privKey -> model.setPrivKeyAndCheckPubKey(privKey)).width(700).show();
}
} else {
model.myArbitratorProperty.removeListener(arbitratorChangeListener);
}
}
Aggregations