use of io.bisq.core.alert.AlertManager in project bisq-api by mrosseel.
the class BisqApiWithUI method showSendAlertMessagePopup.
private void showSendAlertMessagePopup() {
AlertManager alertManager = injector.getInstance(AlertManager.class);
boolean useDevPrivilegeKeys = injector.getInstance(Key.get(Boolean.class, Names.named(AppOptionKeys.USE_DEV_PRIVILEGE_KEYS)));
new SendAlertMessageWindow(useDevPrivilegeKeys).onAddAlertMessage(alertManager::addAlertMessageIfKeyIsValid).onRemoveAlertMessage(alertManager::removeAlertMessageIfKeyIsValid).show();
}
Aggregations