Skip to content

Commit 56c1888

Browse files
committed
not required file change
1 parent e909a0e commit 56c1888

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

plugins/core/jetbrains-community/src/software/aws/toolkits/jetbrains/core/notifications/DisplayToastNotifications.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ package software.aws.toolkits.jetbrains.core.notifications
66
import com.intellij.notification.NotificationType
77
import com.intellij.openapi.actionSystem.AnAction
88
import com.intellij.openapi.project.Project
9-
import software.aws.toolkits.jetbrains.utils.notifySticky
109

1110
object DisplayToastNotifications {
1211
fun show(title: String, message: String, action: List<AnAction>, notificationType: NotificationSeverity) {
@@ -15,7 +14,7 @@ object DisplayToastNotifications {
1514
NotificationSeverity.WARNING -> NotificationType.WARNING
1615
NotificationSeverity.INFO -> NotificationType.INFORMATION
1716
}
18-
notifySticky(notifyType, title, message, null, action)
17+
1918
}
2019

2120
fun shouldShow(project: Project, notificationData: NotificationData) {

plugins/core/jetbrains-community/src/software/aws/toolkits/jetbrains/utils/NotificationUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ private fun notify(type: NotificationType, title: String, content: String = "",
4848
notify(notification, project)
4949
}
5050

51-
fun notifySticky(type: NotificationType, title: String, content: String = "", project: Project? = null, notificationActions: Collection<AnAction>) {
51+
private fun notifySticky(type: NotificationType, title: String, content: String = "", project: Project? = null, notificationActions: Collection<AnAction>) {
5252
val notification = Notification(GROUP_DISPLAY_ID_STICKY, title, content, type)
5353
notificationActions.forEach {
5454
notification.addAction(if (it !is NotificationAction) createNotificationExpiringAction(it) else it)

0 commit comments

Comments
 (0)