Don't show message if there were no messages
Otherwise "Notification should have content" error is logged.
This commit is contained in:
@@ -33,6 +33,7 @@ open class NotificationMessageCollector(private val project: Project,
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun showNotification() {
|
fun showNotification() {
|
||||||
|
if (messages.isEmpty()) return
|
||||||
Notifications.Bus.notify(Notification(groupDisplayId, title, resultMessage, NotificationType.INFORMATION), project)
|
Notifications.Bus.notify(Notification(groupDisplayId, title, resultMessage, NotificationType.INFORMATION), project)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user