Skip to content

Commit

Permalink
browser: slideshow: restart timer if restart button pressed
Browse files Browse the repository at this point in the history
..
Change-Id: Ia513a62bf4d65e6b6f6b86a7602e976fb9f275b8
Signed-off-by: Henry Castro <[email protected]>
  • Loading branch information
hcvcastro committed Nov 18, 2024
1 parent b30af5b commit 967df8c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions browser/src/slideshow/PresenterConsole.js
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,13 @@ class PresenterConsole {
case 'restart':
this._pause = false;
this._ticks = 0;
this._drawClock();
this._pauseButton();
this._proxyPresenter.clearInterval(this._timer);
this._timer = this._proxyPresenter.setInterval(
L.bind(this._onTimer, this),
1000,
);
break;
case 'exit':
this._proxyPresenter.close();
Expand Down

0 comments on commit 967df8c

Please sign in to comment.