mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-171282 'Always show full path in the window header' doesn't work in Remote
GitOrigin-RevId: ac03a4b73cdb5ecfb1a2e6649ff12b21e787b742
This commit is contained in:
committed by
intellij-monorepo-bot
parent
77813916c7
commit
7584c851ed
+2
-2
@@ -12,10 +12,10 @@ import com.intellij.openapi.util.io.FileUtil
|
||||
import com.intellij.openapi.vfs.VirtualFile
|
||||
import com.intellij.openapi.vfs.newvfs.VfsPresentationUtil
|
||||
import com.intellij.ui.ExperimentalUI
|
||||
import com.intellij.util.PathUtil
|
||||
import com.intellij.util.PlatformUtils
|
||||
import org.jetbrains.annotations.NonNls
|
||||
import org.jetbrains.annotations.SystemIndependent
|
||||
import kotlin.io.path.Path
|
||||
|
||||
open class PlatformFrameTitleBuilder : FrameTitleBuilder() {
|
||||
override fun getProjectTitle(project: Project): String {
|
||||
@@ -61,7 +61,7 @@ private fun doGetFileTitle(
|
||||
): String {
|
||||
return when {
|
||||
overriddenTitle != null -> overriddenTitle
|
||||
Path(file.path).parent == null -> file.presentableName
|
||||
PathUtil.getParentPath(file.path).isEmpty() -> file.presentableName
|
||||
UISettings.getInstance().fullPathsInWindowHeader && !ExperimentalUI.isNewUI() -> {
|
||||
displayUrlRelativeToProject(
|
||||
file = file,
|
||||
|
||||
Reference in New Issue
Block a user