Search in sources :

Example 1 with DisplayAlertMessageWindow

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

Aggregations

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