summaryrefslogtreecommitdiff
path: root/src/main/kotlin/me/kyren223/harpoonforjb/AppSettingsConfigurable.kt
diff options
context:
space:
mode:
authorKyren223 <ulmliad223@gmail.com>2024-02-14 09:41:19 +0200
committerKyren223 <ulmliad223@gmail.com>2024-02-14 09:41:19 +0200
commitefe9b7e3b4ad2c1960aff5a5d1569cac98e281d0 (patch)
treebd089b80cf651791d8364ba1ebedcd6534308f21 /src/main/kotlin/me/kyren223/harpoonforjb/AppSettingsConfigurable.kt
parent98ed2e0053aa1300dcd463676265778fb872fc98 (diff)
Ok/Cancel buttons are now hidden
Added selected action, Selecting now works on enter or a custom-bound action
Diffstat (limited to 'src/main/kotlin/me/kyren223/harpoonforjb/AppSettingsConfigurable.kt')
-rw-r--r--src/main/kotlin/me/kyren223/harpoonforjb/AppSettingsConfigurable.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/kotlin/me/kyren223/harpoonforjb/AppSettingsConfigurable.kt b/src/main/kotlin/me/kyren223/harpoonforjb/AppSettingsConfigurable.kt
index 5d50bb9..4ece20e 100644
--- a/src/main/kotlin/me/kyren223/harpoonforjb/AppSettingsConfigurable.kt
+++ b/src/main/kotlin/me/kyren223/harpoonforjb/AppSettingsConfigurable.kt
@@ -21,6 +21,7 @@ class AppSettingsConfigurable : Configurable {
if (settings.harpoonWidth != this.settings!!.getHarpoonWidth()) return true
if (settings.harpoonHeight != this.settings!!.getHarpoonHeight()) return true
if (settings.harpoonFontSize != this.settings!!.getHarpoonFontSize()) return true
+ if (settings.harpoonEnterToSelect != this.settings!!.getHarpoonEnterToSelect()) return true
return false
}
@@ -29,6 +30,7 @@ class AppSettingsConfigurable : Configurable {
settings.harpoonWidth = this.settings!!.getHarpoonWidth()
settings.harpoonHeight = this.settings!!.getHarpoonHeight()
settings.harpoonFontSize = this.settings!!.getHarpoonFontSize()
+ settings.harpoonEnterToSelect = this.settings!!.getHarpoonEnterToSelect()
}
override fun reset() {
@@ -39,6 +41,7 @@ class AppSettingsConfigurable : Configurable {
this.settings!!.setHarpoonWidth(settings.harpoonWidth)
this.settings!!.setHarpoonHeight(settings.harpoonHeight)
this.settings!!.setHarpoonFontSize(settings.harpoonFontSize)
+ this.settings!!.setHarpoonEnterToSelect(settings.harpoonEnterToSelect)
}
override fun disposeUIResources() {