From 6461e1cbe873bbdb1b0c8494e3398f96a32017fc Mon Sep 17 00:00:00 2001 From: JosephMcc Date: Fri, 24 Nov 2023 08:36:42 -0800 Subject: [PATCH] gesturesManager.js: Fix a couple small issues Add a missing declaration and fix the mis-naming of a variable --- js/ui/gestures/gesturesManager.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js/ui/gestures/gesturesManager.js b/js/ui/gestures/gesturesManager.js index aca8d3c0d7..2213c6c730 100644 --- a/js/ui/gestures/gesturesManager.js +++ b/js/ui/gestures/gesturesManager.js @@ -119,12 +119,13 @@ var GesturesManager = class { continue; } + let custom_string; let action_string = custom_string = ""; if (val.startsWith("EXEC:")) { [action_string, custom_string] = val.split(":"); if (custom_string === "") { - this.gesture_settings.set_string(key, ""); + this.settings.set_string(key, ""); continue; } } else { @@ -132,11 +133,11 @@ var GesturesManager = class { } if (custom_string === "") { - this.gesture_settings.set_string(key, `${action_string}::end`); + this.settings.set_string(key, `${action_string}::end`); } else { - this.gesture_settings.set_string(key, `${action_string}::${custom_string}::end`); + this.settings.set_string(key, `${action_string}::${custom_string}::end`); } } }