Archived
1
0

Fixing layered assignment bug.

- Layered assignments were lost due to how the cached assignments were replayed
- Replaying each assignment cache after each file is done processing
This commit is contained in:
Jacob Alexander 2014-09-16 18:14:06 -07:00
parent 59a4b27de5
commit b4e4a13811
2 changed files with 4 additions and 3 deletions

View File

@ -146,7 +146,8 @@ class Macros:
self.macros[ self.layer ][ trigger ] = [ result ] self.macros[ self.layer ][ trigger ] = [ result ]
# Mark layer scan code, so it won't be removed later # Mark layer scan code, so it won't be removed later
if not self.baseLayout is None: # Also check to see if it hasn't already been removed before
if not self.baseLayout is None and trigger in self.layerLayoutMarkers[ self.layer ]:
del self.layerLayoutMarkers[ self.layer ][ trigger ] del self.layerLayoutMarkers[ self.layer ][ trigger ]
# Return a list of ScanCode triggers with the given USB Code trigger # Return a list of ScanCode triggers with the given USB Code trigger