Fix reloading summary on collapsed Time Log widget after closing Time Log dialog
All checks were successful
CI / test (push) Successful in 3m29s
Lint / test (push) Successful in 28s
Trivy / test (push) Successful in 21s

This commit is contained in:
Miguel Jacq 2025-11-19 12:46:38 +11:00
parent 4db40e6b4b
commit 0b3249c7ef
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9

View file

@ -158,9 +158,11 @@ class TimeLogWidget(QFrame):
dlg = TimeLogDialog(self._db, self._current_date, self) dlg = TimeLogDialog(self._db, self._current_date, self)
dlg.exec() dlg.exec()
# Always refresh summary when the dialog closes; the user may have changed entries # Always refresh summary + header totals
self._reload_summary()
if self.toggle_btn.isChecked(): if self.toggle_btn.isChecked():
self._reload_summary() self.summary_label.setText(strings._("time_log_collapsed_hint"))
class TimeLogDialog(QDialog): class TimeLogDialog(QDialog):