Search in sources :

Example 1 with EnterPrivKeyWindow

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);
    }
}
Also used : EnterPrivKeyWindow(io.bitsquare.gui.main.overlays.windows.EnterPrivKeyWindow)

Aggregations

EnterPrivKeyWindow (io.bitsquare.gui.main.overlays.windows.EnterPrivKeyWindow)1