PY-26359 Don't run skeleton generation / remote paths refresh if project hasn't been created yet

We will re-run SDK updater as a per-project startup activity on opening
the newly created project.
This commit is contained in:
Andrey Vlasovskikh
2017-10-10 05:49:49 +03:00
parent 89bcd0ecc0
commit dbf20ce1e2
@@ -117,6 +117,9 @@ public class PythonSdkUpdater implements StartupActivity {
return false;
}
if (project == null) {
return true;
}
final Application application = ApplicationManager.getApplication();
@@ -134,7 +137,7 @@ public class PythonSdkUpdater implements StartupActivity {
}
ourScheduledToRefresh.remove(key);
}
if (project != null && project.isDisposed()) {
if (project.isDisposed()) {
return;
}
if (PythonSdkType.findSdkByKey(key) == null) {