Skip to content

Commit 3e6de87

Browse files
committed
fix: don't cache the useAppNameAsTitle option
Always read it from the underlying store. The way it is declared right now we read the value once and cache it.
1 parent d468f4e commit 3e6de87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class CoderSettingsStore(
3838
// Properties implementation
3939
override val lastDeploymentURL: String? get() = store[LAST_USED_URL]
4040
override val defaultURL: String get() = store[DEFAULT_URL] ?: "https://dev.coder.com"
41-
override val useAppNameAsTitle: Boolean = store[APP_NAME_AS_TITLE]?.toBooleanStrictOrNull() ?: false
41+
override val useAppNameAsTitle: Boolean get() = store[APP_NAME_AS_TITLE]?.toBooleanStrictOrNull() ?: false
4242
override val binarySource: String? get() = store[BINARY_SOURCE]
4343
override val binaryDirectory: String? get() = store[BINARY_DIRECTORY]
4444
override val disableSignatureVerification: Boolean

0 commit comments

Comments
 (0)