mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-84554: IJPL-205982: allow hiding the VCS toolbar widget for non-modal welcome screen projects
Co-authored-by: Ilia Zakoulov <ilia.zakoulov@jetbrains.com> GitOrigin-RevId: 06b6a8c60c6b7c32fae36ab348511f6349b64aa9
This commit is contained in:
committed by
intellij-monorepo-bot
co-authored by
Ilia Zakoulov
parent
864731229f
commit
d999c8a75f
@@ -37,6 +37,7 @@ import com.intellij.openapi.vcs.update.UpdatedFiles
|
||||
import com.intellij.openapi.vfs.VfsUtilCore
|
||||
import com.intellij.openapi.vfs.VirtualFile
|
||||
import com.intellij.openapi.wm.ToolWindowManager
|
||||
import com.intellij.openapi.wm.ex.WelcomeScreenProjectProvider
|
||||
import com.intellij.project.isDirectoryBased
|
||||
import com.intellij.project.stateStore
|
||||
import com.intellij.ui.content.ContentManager
|
||||
@@ -622,6 +623,10 @@ class ProjectLevelVcsManagerImpl(
|
||||
|
||||
internal class ActivateVcsesStartupActivity : VcsStartupActivity {
|
||||
override fun runActivity(project: Project) {
|
||||
if (WelcomeScreenProjectProvider.isWelcomeScreenProject(project)) {
|
||||
return
|
||||
}
|
||||
|
||||
getInstanceImpl(project).mappingsHolder.activateActiveVcses()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user