From 6d99d357ab39ca19440c3b18dbdae9a4a326eba8 Mon Sep 17 00:00:00 2001 From: LemonNexus Date: Tue, 10 Feb 2026 14:49:31 +0000 Subject: [PATCH] fix: pause/resume now stops HUD tracking - Set hud.session_active = False when paused - Set hud.session_active = True when resumed - Update HUD status label to show paused state (orange) - Prevents loot/costs from being tracked during breaks --- ui/main_window.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/ui/main_window.py b/ui/main_window.py index 81b0141..abff918 100644 --- a/ui/main_window.py +++ b/ui/main_window.py @@ -1402,13 +1402,23 @@ class MainWindow(QMainWindow): if self.session_state == SessionState.RUNNING: self.set_session_state(SessionState.PAUSED) self.session_paused.emit() - self.log_info("Session", "Session paused") + # Pause HUD tracking + if self.hud: + self.hud.session_active = False + self.hud.status_label.setText("● Paused") + self.hud.status_label.setStyleSheet("color: #FF9800; font-weight: bold;") + self.log_info("Session", "Session paused - tracking stopped") self.session_info_label.setText("Session paused") self.pause_session_btn.setText("▶️ Resume") elif self.session_state == SessionState.PAUSED: self.set_session_state(SessionState.RUNNING) self.session_resumed.emit() - self.log_info("Session", "Session resumed") + # Resume HUD tracking + if self.hud: + self.hud.session_active = True + self.hud.status_label.setText("● Live") + self.hud.status_label.setStyleSheet("color: #7FFF7F; font-weight: bold;") + self.log_info("Session", "Session resumed - tracking started") self.session_info_label.setText("Session resumed") self.pause_session_btn.setText("⏸️ Pause")