mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
trusted-projects: expand ~ as the user home: IDEA-265821
GitOrigin-RevId: 7e7502300386e15fe2f029ae8bcc150d0bab411f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
7ca7344d9f
commit
32b9d6a38c
@@ -11,6 +11,7 @@ import com.intellij.openapi.ui.DialogBuilder
|
||||
import com.intellij.openapi.ui.DialogPanel
|
||||
import com.intellij.openapi.ui.Messages
|
||||
import com.intellij.openapi.ui.TextFieldWithBrowseButton
|
||||
import com.intellij.openapi.util.io.FileUtil
|
||||
import com.intellij.ui.CollectionListModel
|
||||
import com.intellij.ui.ToolbarDecorator
|
||||
import com.intellij.ui.components.JBList
|
||||
@@ -87,7 +88,7 @@ class TrustedHostsConfigurable : BoundConfigurable(IdeBundle.message("configurab
|
||||
.title(IdeBundle.message("trusted.hosts.settings.new.trusted.folder.dialog.title"))
|
||||
.setNorthPanel(pathField)
|
||||
.showAndGet()
|
||||
return if (ok) pathField.text else null
|
||||
return if (ok) FileUtil.expandUserHome(pathField.text) else null
|
||||
}
|
||||
|
||||
override fun getId(): String {
|
||||
|
||||
Reference in New Issue
Block a user