Show notification for "Non configured Kotlin Project" only after indexing

This commit is contained in:
Natalia Ukhorskaya
2015-05-25 13:09:09 +03:00
parent a47a27565b
commit 37c47ac980
@@ -19,6 +19,7 @@ package org.jetbrains.kotlin.idea.configuration.ui;
import com.intellij.notification.NotificationDisplayType;
import com.intellij.notification.NotificationsConfiguration;
import com.intellij.openapi.components.AbstractProjectComponent;
import com.intellij.openapi.project.DumbService;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.startup.StartupManager;
import org.jetbrains.kotlin.idea.configuration.ConfigureKotlinInProjectUtils;
@@ -40,7 +41,12 @@ public class NonConfiguredKotlinProjectComponent extends AbstractProjectComponen
StartupManager.getInstance(myProject).registerPostStartupActivity(new Runnable() {
@Override
public void run() {
ConfigureKotlinInProjectUtils.showConfigureKotlinNotificationIfNeeded(myProject);
DumbService.getInstance(myProject).smartInvokeLater(new Runnable() {
@Override
public void run() {
ConfigureKotlinInProjectUtils.showConfigureKotlinNotificationIfNeeded(myProject);
}
});
}
});
}