use of io.bitsquare.gui.main.overlays.windows.DisplayAlertMessageWindow in project bitsquare by bitsquare.
the class MainViewModel method displayAlertIfPresent.
private void displayAlertIfPresent(Alert alert) {
boolean alreadyDisplayed = alert != null && alert.equals(user.getDisplayedAlert());
user.setDisplayedAlert(alert);
if (alert != null && !alreadyDisplayed && (!alert.isUpdateInfo || alert.isNewVersion()))
new DisplayAlertMessageWindow().alertMessage(alert).show();
}
Aggregations