mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 06:50:54 +07:00
OPENIDE #124 Sometimes the welcome screen does not load after reopening the project
(cherry picked from commit a9c2c342db5f4bb7a5614701c8d3f6c5fa8a3e7e) (cherry picked from commitf4626ab985) (cherry picked from commitdbccc37402) (cherry picked from commit42a7a10ecf)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user