Skip to content

Commit

Permalink
fix: 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 d56949f commit 9fd5f61
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyrekordbox/db6/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,12 @@ class Base(DeclarativeBase):

@classmethod
def create(cls, **kwargs):
enabled = RekordboxAgentRegistry.__enabled__
RekordboxAgentRegistry.disable_tracking()
# noinspection PyArgumentList
self = cls(**kwargs)
RekordboxAgentRegistry.enable_tracking()
if enabled:
RekordboxAgentRegistry.enable_tracking()
return self

@classmethod
Expand Down

0 comments on commit 9fd5f61

Please sign in to comment.