Skip to content

Commit c56ff2d

Browse files
committed
"alwaysListening" over "alwaysListen" to keep parity with modules
1 parent cad2cdb commit c56ff2d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/main/kotlin/com/lambda/config/Configurable.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,19 +229,19 @@ abstract class Configurable(
229229
name: String,
230230
defaultValue: Bind,
231231
description: String = "",
232-
alwaysListen: Boolean = false,
232+
alwaysListening: Boolean = false,
233233
screenCheck: Boolean = true,
234234
visibility: () -> Boolean = { true },
235-
) = Setting(name, description, KeybindSetting(defaultValue, this as? Muteable, alwaysListen, screenCheck), this, visibility).register()
235+
) = Setting(name, description, KeybindSetting(defaultValue, this as? Muteable, alwaysListening, screenCheck), this, visibility).register()
236236

237237
fun setting(
238238
name: String,
239239
defaultValue: KeyCode,
240240
description: String = "",
241-
alwaysListen: Boolean = false,
241+
alwaysListening: Boolean = false,
242242
screenCheck: Boolean = true,
243243
visibility: () -> Boolean = { true },
244-
) = Setting(name, description, KeybindSetting(defaultValue, this as? Muteable, alwaysListen, screenCheck), this, visibility).register()
244+
) = Setting(name, description, KeybindSetting(defaultValue, this as? Muteable, alwaysListening, screenCheck), this, visibility).register()
245245

246246
fun setting(
247247
name: String,

src/main/kotlin/com/lambda/module/Module.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ abstract class Module(
121121
autoDisable: Boolean = false
122122
) : Nameable, Muteable, Configurable(ModuleConfigs), MutableAutomationConfig by MutableAutomationConfigImpl() {
123123
private val isEnabledSetting = setting("Enabled", enabledByDefault) { false }
124-
val keybindSetting = setting("Keybind", defaultKeybind, alwaysListen = true) { false }
124+
val keybindSetting = setting("Keybind", defaultKeybind, alwaysListening = true) { false }
125125
.onPress { toggle() }
126126
.onRelease { if (disableOnRelease) disable() }
127127
val disableOnReleaseSetting = setting("Disable On Release", false) { false }

0 commit comments

Comments
 (0)