[IFT] Fix unexpected restores in the navigation lessons

File is opened asynchronously, but restore check is executed after any event. There is no way except of adding the delay for restore.
Fixed IFT-475, IFT-476 and IFT-477.

GitOrigin-RevId: 4090bb9db067135a791a0a72c2f434060bc108eb
This commit is contained in:
Konstantin Hudyakov
2023-07-13 17:18:48 +03:00
committed by intellij-monorepo-bot
parent 1da9589080
commit f965a02e7b
3 changed files with 4 additions and 4 deletions

View File

@@ -37,7 +37,7 @@ class JavaInheritanceHierarchyLesson
(virtualFile.name == "DerivedClass1.java" || virtualFile.name == "DerivedClass2.java") && atDeclarationPosition()
}
restoreAfterStateBecomeFalse {
restoreState(delayMillis = defaultRestoreDelay) {
focusOwner is EditorComponentImpl
}