Skip to content

Commit a280fd8

Browse files
committed
fix users some ide window will be stuck at fetching profile... state in multi window use cases
1 parent 8b35b1d commit a280fd8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/profile/QRegionProfileManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class QRegionProfileManager : PersistentStateComponent<QProfileState>, Disposabl
144144
}
145145
}
146146

147-
project.messageBus
147+
ApplicationManager.getApplication().messageBus
148148
.syncPublisher(QRegionProfileSelectedListener.TOPIC)
149149
.onProfileSelected(project, newProfile)
150150
}

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/profile/QRegionProfileSelectedListener.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import com.intellij.util.messages.Topic
88

99
interface QRegionProfileSelectedListener {
1010
companion object {
11-
@Topic.ProjectLevel
11+
@Topic.AppLevel
1212
val TOPIC = Topic.create("QRegionProfileSelected", QRegionProfileSelectedListener::class.java)
1313
}
1414

0 commit comments

Comments
 (0)