Skip to content

Commit efc941d

Browse files
authored
fix: only import window if necessary (#869)
Only import window if necessary
1 parent 6628673 commit efc941d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

openadapt/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,8 @@ def get_active_window_event(
525525
Returns:
526526
(WindowEvent) the active window event.
527527
"""
528+
from openadapt import window
529+
528530
return WindowEvent(**window.get_active_window_data(include_window_data))
529531

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

0 commit comments

Comments
 (0)