Skip to content

Commit

Permalink
Nur initialisieren, wenn UI verfügbar ist
Browse files Browse the repository at this point in the history
  • Loading branch information
willuhn committed Feb 22, 2023
1 parent 0312e59 commit 858e395
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/de/willuhn/jameica/gui/parts/NotificationPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,12 @@ private Type(String icon, Color bg, Color fg)

static
{
TYPEMAP.put(StatusBarMessage.TYPE_ERROR, Type.ERROR);
TYPEMAP.put(StatusBarMessage.TYPE_SUCCESS,Type.SUCCESS);
TYPEMAP.put(StatusBarMessage.TYPE_INFO, Type.INFO);
if (!Application.inServerMode())
{
TYPEMAP.put(StatusBarMessage.TYPE_ERROR, Type.ERROR);
TYPEMAP.put(StatusBarMessage.TYPE_SUCCESS,Type.SUCCESS);
TYPEMAP.put(StatusBarMessage.TYPE_INFO, Type.INFO);
}
}

private boolean receiveMessages = false;
Expand Down

0 comments on commit 858e395

Please sign in to comment.