Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions dlclivegui/gui/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -2363,6 +2363,18 @@ def _start_inference(self) -> None:
self._update_dlc_controls_enabled()

def _stop_inference(self, show_message: bool = True) -> None:
if self._rec_manager.is_active:
answer = QMessageBox.question(
self,
"Stop inference while recording?",
"This will stop any currently running DLC-processor. \n"
"File saving will not be handled via standard stop-recording hook."
"The processor might still save it's own data now, but this will not be paired with the recording.\n\n"
"Stop inference anyway?",
)
if answer != QMessageBox.Yes:
return

was_active = self._dlc_active
self._dlc_active = False
self._dlc_initialized = False
Expand Down
1 change: 1 addition & 0 deletions dlclivegui/services/dlc_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ def shutdown(self) -> None:
"Shutdown requested but worker thread is still alive; DLCLive instance may not be fully released."
)
return
self._cleanup_processor()
self._dlc = None
self._initialized = False

Expand Down