Skip to content

Commit

Permalink
Nit: Change "KOBWEB_PLUGIN_STATE" PropertiesComponent name
Browse files Browse the repository at this point in the history
... to match the style used by other system properties components
(which seems to usualyl be lower-kebab-case)
  • Loading branch information
bitspittle committed Mar 2, 2024
1 parent 8462368 commit 58f3bc2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ enum class KobwebPluginState {
INITIALIZED,
}

private const val KOBWEB_PLUGIN_STATE_PROPERTY = "KOBWEB_PLUGIN_STATE"
private const val KOBWEB_PLUGIN_STATE_PROPERTY = "kobweb-plugin-state"
var Project.kobwebPluginState: KobwebPluginState
get() = PropertiesComponent.getInstance(this).getValue(KOBWEB_PLUGIN_STATE_PROPERTY, KobwebPluginState.DISABLED.name).let { KobwebPluginState.valueOf(it) }
set(value) = PropertiesComponent.getInstance(this).setValue(KOBWEB_PLUGIN_STATE_PROPERTY, value.name)
Expand Down

0 comments on commit 58f3bc2

Please sign in to comment.