Skip to content

Commit 6754300

Browse files
committed
fix: read fresh values from the config store
`allowUnsignedBinaryWithoutPrompt` was caching the initial value read from the store, which required a restart of Toolbox for the real value to reflect.
1 parent dbf8560 commit 6754300

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/com/coder/toolbox/store/CoderSettingsStore.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ class CoderSettingsStore(
3737
override val defaultURL: String get() = store[DEFAULT_URL] ?: "https://dev.coder.com"
3838
override val binarySource: String? get() = store[BINARY_SOURCE]
3939
override val binaryDirectory: String? get() = store[BINARY_DIRECTORY]
40-
override val allowUnsignedBinaryWithoutPrompt: Boolean =
41-
store[ALLOW_UNSIGNED_BINARY_EXEC]?.toBooleanStrictOrNull() ?: false
40+
override val allowUnsignedBinaryWithoutPrompt: Boolean
41+
get() = store[ALLOW_UNSIGNED_BINARY_EXEC]?.toBooleanStrictOrNull() ?: false
4242
override val defaultCliBinaryNameByOsAndArch: String get() = getCoderCLIForOS(getOS(), getArch())
4343
override val binaryName: String get() = store[BINARY_NAME] ?: getCoderCLIForOS(getOS(), getArch())
4444
override val dataDirectory: String? get() = store[DATA_DIRECTORY]

0 commit comments

Comments
 (0)