Skip to content

Commit

Permalink
clear timer fields at redraw
Browse files Browse the repository at this point in the history
  • Loading branch information
staniska committed Oct 16, 2024
1 parent 539793d commit cbc6b05
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/sinumerik-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,11 @@ export default class SinumerikView {
atom.workspace.panelContainers.right.panels.forEach(function (panel) {
if (panel.item.className == 'sinumerikPanel') {
if (panel.visible) {
const timerDiv = panel.item.querySelector('#machiningTime')
if (timerDiv) {
timerDiv.value = '--:--:--'
panel.item.querySelector('#rapidTimeDiv').textContent = ''
}
if (!View.sinumerikView.parseData || View.sinumerikView.singleLineDebugVisibility === 'hidden') {
sinumerik.sinumerikView.eventRouter.route('{"emitter": "singleLine", "event": "singleLineDebugButtonClick"}');
} else {
Expand Down

0 comments on commit cbc6b05

Please sign in to comment.