Skip to content

Commit edf5f66

Browse files
committed
reset countdown at the end of the reset from side
(cherry picked from commit c84888c)
1 parent 242dd31 commit edf5f66

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dls_barcode/gui/countdown_box.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ def reset_countdown(self):
4545

4646
def display(self):
4747
self._message_lbl.clear()
48-
if self.count is not None and self.count >= 0:
48+
if self.count is not None and self.count > 0:
4949
self._message_lbl.setText(str(self.count))
5050
self.count = self.count - 1

dls_barcode/main_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ def _restart_live_capture_from_top(self):
6868

6969
def _restart_live_capture_from_side(self):
7070
self._reset_msg_timer()
71-
self._ui.resetCountdown()
7271
self._camera_switch.restart_live_capture_from_side()
72+
self._ui.resetCountdown()
7373

7474
def _read_message_queue(self):
7575
if self._message_queue.empty():

0 commit comments

Comments
 (0)