Skip to content

Commit 276a06a

Browse files
committed
PathViewCore: execute preview for anything
1 parent cbe2fe3 commit 276a06a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/pathview/PathViewCore.qml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,9 @@ ApplicationItem {
112112
}
113113

114114
function executePreview() {
115-
if (file.remoteFilePath.split('.').pop() === 'ngc') { // only open ngc files
116-
gcodeProgramModel.clearPreview();
117-
command.openProgram('preview', file.remoteFilePath);
118-
command.runProgram('preview', 0);
119-
}
115+
gcodeProgramModel.clearPreview();
116+
command.openProgram('preview', file.remoteFilePath);
117+
command.runProgram('preview', 0);
120118
}
121119
}
122120

0 commit comments

Comments
 (0)