Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements to the stopwatch clockinfo #2695

Merged
merged 7 commits into from Apr 17, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev Previous commit
Next Next commit
clkinfo stopw: fix redrawing when paused
  • Loading branch information
bobrippling committed Apr 16, 2023
commit efd6ec5083b98715c222666c26e03ef52fece63c
8 changes: 7 additions & 1 deletion apps/clkinfostopw/clkinfo.ts
Expand Up @@ -53,7 +53,13 @@
: durationOnPause,
img: img(),
}),
show: queueRedraw,
show: function(this: ClockInfo.MenuItem) {
if(startTime){ // only queue if active
queueRedraw.call(this);
}else{
this.emit('redraw')
}
},
hide: unqueueRedraw,
run: function() { // tapped
if (startTime) {
Expand Down