Skip to content

Commit 082be42

Browse files
Fixing notifications always being presented as an error
1 parent 5167568 commit 082be42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/pl/thedeem/intellij/dql/services/notifications/DQLNotificationsServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public Notification showNotification(@NotNull String group, @NotNull String titl
2424
public Notification showNotification(@NotNull String group, @NotNull String title, @NotNull String message, @NotNull NotificationType type, @NotNull Project project, @NotNull Collection<AnAction> actions) {
2525
Notification notification = activeNotifications.get(title);
2626
if (notification == null || notification.isExpired()) {
27-
notification = NotificationGroupManager.getInstance().getNotificationGroup(group).createNotification(title, message, NotificationType.ERROR);
27+
notification = NotificationGroupManager.getInstance().getNotificationGroup(group).createNotification(title, message, type);
2828
activeNotifications.put(title, notification);
2929
notification.setRemoveWhenExpired(true);
3030
notification.whenExpired(() -> activeNotifications.remove(title));

0 commit comments

Comments
 (0)