feat: moved project info destruction logic to ProjectManager

This commit is contained in:
Akash Yadav
2022-12-25 21:56:03 +05:30
parent 0167452b20
commit a8247e75e2
5 changed files with 14 additions and 6 deletions
@@ -72,6 +72,14 @@ object ProjectManager : EventReceiver {
}
}
}
fun destroy() {
log.info("Destroying project manager")
this.rootProject = null
this.app = null
this.cachedInitResult = null
this.projectInitialized = false
}
fun getProjectDir(): File {
return File(getProjectDirPath())