-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix clear button not removing hotkey (#550)
Previously, clicking "clear" does not change how the hotkeys are persisted, but it does remove TriggerMode.HOTKEY from the item, which is persisted as an empty "modes" array in the json. When autokey is reloaded, the empty "modes" array means the hotkeys in that item are ignored. With the aforementioned lines adding that triggermode back, the hotkeys that are persisted are seen and taken up as hotkeys. Priviously, saving in the gui didn't touch the hotkey if the hotkey box wasn't enabled. Now: saving in the gui calls item.unset_hotkey if hotkey box is disabled.
- Loading branch information
1 parent
48ac473
commit 9187259
Showing
3 changed files
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters