Skip to content

Commit

Permalink
FIX #33: custom functions keys settings bug
Browse files Browse the repository at this point in the history
  • Loading branch information
egzumer committed Feb 15, 2024
1 parent 7b0cf2d commit 88f8ba0
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions uvk5_egzumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -869,19 +869,24 @@ def set_settings(self, settings):
_mem[elname] = val

if elname == "key1_shortpress_action":
_mem.key1_shortpress_action = element.value
_mem.key1_shortpress_action = \
KEYACTIONS_LIST.index(element.value)

elif elname == "key1_longpress_action":
_mem.key1_longpress_action = element.value
_mem.key1_longpress_action = \
KEYACTIONS_LIST.index(element.value)

elif elname == "key2_shortpress_action":
_mem.key2_shortpress_action = element.value
_mem.key2_shortpress_action = \
KEYACTIONS_LIST.index(element.value)

elif elname == "key2_longpress_action":
_mem.key2_longpress_action = element.value
_mem.key2_longpress_action = \
KEYACTIONS_LIST.index(element.value)

elif elname == "keyM_longpress_action":
_mem.keyM_longpress_action = element.value
_mem.keyM_longpress_action = \
KEYACTIONS_LIST.index(element.value)

elif element.changed() and elname.startswith("cal."):
_mem.get_path(elname).set_value(element.value)
Expand Down

0 comments on commit 88f8ba0

Please sign in to comment.