OPENIDE #124 Sometimes the welcome screen does not load after reopening the project

(cherry picked from commit 501356f91f63dcd5baaf291ab14be290c5fdba9f)
This commit is contained in:
Nikita Iarychenko
2025-03-19 16:37:22 +04:00
parent 3b441bfb3a
commit 0eb4115a53

View File

@@ -21,6 +21,7 @@ import com.intellij.openapi.util.Key
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.ui.jcef.JBCefApp
import com.intellij.util.application
import ru.openide.welcome.screen.editor.WelcomeScreenFile
class HtmlEditorProvider : FileEditorProvider, DumbAware {
@@ -31,7 +32,7 @@ class HtmlEditorProvider : FileEditorProvider, DumbAware {
return HtmlFileEditor(project, file, model)
}
override fun accept(project: Project, file: VirtualFile): Boolean = file.getUserData(MODEL_KEY) != null
override fun accept(project: Project, file: VirtualFile): Boolean = file is WelcomeScreenFile
override fun acceptRequiresReadAction(): Boolean = false