Skip to content

Commit 7472fe1

Browse files
matifaliClaude
and
Claude
committed
fix: hide token input text and fix plugin installation path
- Change token text field type from General to Password to hide sensitive token values - Fix plugin installation path for different operating systems - Resolves #3 📱 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f42f9f5 commit 7472fe1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build.gradle.kts

+3-3
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ private fun getPluginInstallDir(): Path {
119119
} / "JetBrains" / "Toolbox"
120120

121121
val pluginsDir = when {
122-
SystemInfoRt.isWindows -> toolboxCachesDir / "cache"
123-
SystemInfoRt.isLinux || SystemInfoRt.isMac -> toolboxCachesDir
122+
SystemInfoRt.isWindows -> toolboxCachesDir / "cache" / "plugins"
123+
SystemInfoRt.isLinux || SystemInfoRt.isMac -> toolboxCachesDir / "plugins"
124124
else -> error("Unknown os")
125-
} / "plugins"
125+
}
126126

127127
return pluginsDir / pluginId
128128
}

src/main/kotlin/com/coder/toolbox/views/TokenPage.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class TokenPage(
2121
private val token: Pair<String, Source>?,
2222
private val onToken: ((token: String) -> Unit),
2323
) : CoderPage() {
24-
private val tokenField = TextField("Token", token?.first ?: "", TextType.General)
24+
private val tokenField = TextField("Token", token?.first ?: "", TextType.Password)
2525

2626
override fun getTitle(): String = "Enter your token"
2727

0 commit comments

Comments
 (0)