Skip to content

Commit

Permalink
only re-enable RBV6 USN tracking if it was enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanljones committed Oct 20, 2023
1 parent 9fd5f61 commit 7a76262
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyrekordbox/db6/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,11 @@ def disabled(cls):
... print(registry.__enabled__)
False
"""
enabled = cls.__enabled__
cls.disable_tracking()
yield cls
cls.enable_tracking()
if enabled:
cls.enable_tracking()

def get_registries(self):
"""Returns all agent registries.
Expand Down

0 comments on commit 7a76262

Please sign in to comment.