Skip to content

Commit

Permalink
Merge main into feature/ideNotifs
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-toolkit-automation authored Nov 30, 2024
2 parents 2e9c4f6 + 46c4a3c commit 920d068
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,10 @@ object NotificationManager {
add(
NotificationActionList(AwsCoreBundle.message("general.more_dialog")) {
if (url == null) {
Messages.showYesNoDialog(
Messages.showMessageDialog(
project,
message,
title,
AwsCoreBundle.message("general.acknowledge"),
AwsCoreBundle.message("general.cancel"),
AllIcons.General.Error
)
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ internal class NotificationServiceInitializer : ProjectActivity {
private val initialized = AtomicBoolean(false)

override suspend fun execute(project: Project) {
ProcessNotificationsBase.getInstance(project)
if (ApplicationManager.getApplication().isUnitTestMode) return
if (initialized.compareAndSet(false, true)) {
val service = NotificationPollingService.getInstance()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class ProcessNotificationsBase(
) {
private val notifListener = mutableListOf<NotifListener>()
init {
LOG.info { "Initializing ProcessNotificationsBase" }
NotificationPollingService.getInstance().addObserver {
retrieveStartupAndEmergencyNotifications()
}
Expand Down

0 comments on commit 920d068

Please sign in to comment.