mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 06:50:54 +07:00
OPENIDE #186 Add ability hide welcome screen via settings
(cherry picked from commit1a2f018be6) (cherry picked from commitbef58cefe3) (cherry picked from commit52426ad583) (cherry picked from commit2d7f1d91ea)
This commit is contained in:
@@ -23,6 +23,7 @@ import com.intellij.openapi.project.DumbService
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.openapi.startup.ProjectActivity
|
||||
import com.intellij.openapi.startup.StartupManager
|
||||
import com.intellij.openapi.util.registry.RegistryManager
|
||||
import com.intellij.util.concurrency.AppExecutorUtil
|
||||
import java.util.concurrent.Callable
|
||||
|
||||
@@ -59,6 +60,12 @@ class OpenIdeWelcomeScreenProjectActivity : ProjectActivity {
|
||||
private fun showWelcomeScreen(project: Project, isFirstOpen: Boolean) {
|
||||
if (!isFirstOpen) return
|
||||
OpenIdeProjectLocalState.getInstance(project).isFirstOpen = false
|
||||
|
||||
val isShowWelcomeScreen = RegistryManager.getInstance()
|
||||
.get("openide.registry.key.show.welcome.screen")
|
||||
.asBoolean()
|
||||
if (!isShowWelcomeScreen) return
|
||||
|
||||
WelcomeScreenHelper(project).showWelcomeScreen()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1763,6 +1763,8 @@
|
||||
description="Enable open in client generator action"/>
|
||||
<registryKey key="editor.show.indexing.as.analyzing" defaultValue="true"
|
||||
description="Replaces Indexing progress with Analyzing during dumb mode"/>
|
||||
<registryKey key="openide.registry.key.show.welcome.screen" defaultValue="true"
|
||||
description="Enables the Welcome Screen to be shown when opening a project for the first time"/>
|
||||
|
||||
<saveAndSyncHandlerListener implementation="com.intellij.codeInsight.daemon.impl.EssentialHighlightingRestarter" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user