Skip to content

Commit

Permalink
fix: only import window if necessary (#869)
Browse files Browse the repository at this point in the history
Only import window if necessary
  • Loading branch information
abrichr authored Aug 7, 2024
1 parent 6628673 commit efc941d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openadapt/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,8 @@ def get_active_window_event(
Returns:
(WindowEvent) the active window event.
"""
from openadapt import window

return WindowEvent(**window.get_active_window_data(include_window_data))

def scrub(self, scrubber: ScrubbingProvider | TextScrubbingMixin) -> None:
Expand Down

0 comments on commit efc941d

Please sign in to comment.