Skip to content

Commit

Permalink
clear machining time when active editor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
staniska committed Nov 11, 2024
1 parent c10d9d7 commit cec927f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/sinumerik-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ export default class SinumerikView {
if (!View.modalPanel.visible) return
const Editor = atom.workspace.getActiveTextEditor();

const timerDiv = document.querySelector('#machiningTime')
if (timerDiv) {
timerDiv.value = '--:--:--'
document.querySelector('#rapidTimeDiv').textContent = ''
}

Editor.onDidChangeSelectionRange((selection) => {
handleSelection(selection.newBufferRange)
})
Expand Down Expand Up @@ -275,6 +281,7 @@ export default class SinumerikView {
this.singleLineDebugFootContainer = document.createElement('div');
this.singleLineDebugFootContainer.className = "sinumerikSingleLineDebugFoot";
this.singleLineDebugFootContainer.style.visibility = this.singleLineDebugVisibility;
this.singleLineDebugFootContainer.style.display = 'flex';
this.foot.appendChild(this.singleLineDebugFootContainer);
//endregion

Expand Down

0 comments on commit cec927f

Please sign in to comment.