UnsupportedAbiVersionNotificationPanelProvider: fix project leak

This commit is contained in:
Dmitry Gridin
2019-08-02 15:00:21 +03:00
parent 584b42d9f9
commit 77a630ce34
@@ -53,7 +53,7 @@ class UnsupportedAbiVersionNotificationPanelProvider(private val project: Projec
EditorNotifications.Provider<EditorNotificationPanel>(), StartupActivity {
override fun runActivity(project: Project) {
val connection = project.messageBus.connect()
val connection = project.messageBus.connect(project)
connection.subscribe(ProjectTopics.PROJECT_ROOTS, object : ModuleRootListener {
override fun rootsChanged(event: ModuleRootEvent) {
updateNotifications()