UnsupportedAbiVersionNotificationPanelProvider: fix project leak
This commit is contained in:
+1
-1
@@ -53,7 +53,7 @@ class UnsupportedAbiVersionNotificationPanelProvider(private val project: Projec
|
|||||||
EditorNotifications.Provider<EditorNotificationPanel>(), StartupActivity {
|
EditorNotifications.Provider<EditorNotificationPanel>(), StartupActivity {
|
||||||
|
|
||||||
override fun runActivity(project: Project) {
|
override fun runActivity(project: Project) {
|
||||||
val connection = project.messageBus.connect()
|
val connection = project.messageBus.connect(project)
|
||||||
connection.subscribe(ProjectTopics.PROJECT_ROOTS, object : ModuleRootListener {
|
connection.subscribe(ProjectTopics.PROJECT_ROOTS, object : ModuleRootListener {
|
||||||
override fun rootsChanged(event: ModuleRootEvent) {
|
override fun rootsChanged(event: ModuleRootEvent) {
|
||||||
updateNotifications()
|
updateNotifications()
|
||||||
|
|||||||
Reference in New Issue
Block a user