Skip to content

Commit

Permalink
Use modal activetstate animation in print dialogs
Browse files Browse the repository at this point in the history
  • Loading branch information
rocodes committed Jul 18, 2024
1 parent 4507c0b commit e957f26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,15 @@ def _run_preflight(self) -> None:

@pyqtSlot()
def _print_file(self) -> None:
self.start_animate_activestate()
self._device.print(self.filepaths)

@pyqtSlot()
def _on_print_complete(self) -> None:
"""
Send a signal to close the print dialog.
"""
self.stop_animate_activestate()
self.close()

@pyqtSlot(object)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def __init__(self, device: Export, file_name: str, filepath: list[str]) -> None:
self.transcript_location = filepath

def _print_transcript(self) -> None:
self.start_animate_activestate()
self._device.print(self.transcript_location)

@pyqtSlot()
Expand Down

0 comments on commit e957f26

Please sign in to comment.