Skip to content

Commit

Permalink
gesturesManager.js: Fix a couple small issues
Browse files Browse the repository at this point in the history
Add a missing declaration and fix the mis-naming of a variable
  • Loading branch information
JosephMcc authored and mtwebster committed Nov 24, 2023
1 parent 75f7b56 commit 6461e1c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions js/ui/gestures/gesturesManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,24 +119,25 @@ 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 {
action_string = val;
}

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`);
}
}
}
Expand Down

0 comments on commit 6461e1c

Please sign in to comment.