Skip to content

Commit 6b6a00c

Browse files
committed
Use backend name in inference status messages
Replace hardcoded "DLCLive" text in the main window inference startup UI with `_backend_display_name()`. This makes the running button label and initialization success/failure status messages reflect the active backend consistently.
1 parent e048ae5 commit 6b6a00c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎dlclivegui/gui/main_window.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3168,16 +3168,16 @@ def _on_pose_processor_initialised(self, success: bool) -> None:
31683168
self._notify_processor_recording_started(self._processor_recording_context)
31693169

31703170
# Update button to show running state
3171-
self.start_inference_button.setText("DLCLive running!")
3171+
self.start_inference_button.setText(f"{self._backend_display_name()} running!")
31723172
self.start_inference_button.setStyleSheet("background-color: #4CAF50; color: white;")
3173-
self.statusBar().showMessage("DLCLive initialized successfully", 3000)
3173+
self.statusBar().showMessage(f"{self._backend_display_name()} initialized successfully", 3000)
31743174
return
31753175

31763176
self._dlc_initialized = False
31773177
# Reset button on failure
31783178
self.start_inference_button.setText("Start pose inference")
31793179
self.start_inference_button.setStyleSheet("")
3180-
self.statusBar().showMessage("DLCLive initialization failed", 5000)
3180+
self.statusBar().showMessage(f"{self._backend_display_name()} initialization failed", 5000)
31813181
# Stop inference since initialization failed
31823182
self._stop_inference(show_message=False)
31833183

0 commit comments

Comments
 (0)