Skip to content

Commit e0f49bd

Browse files
committed
Application: support txt files in selection
1 parent 68a85b4 commit e0f49bd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/application/ApplicationCore.qml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ Item {
167167
ready: fileService.ready
168168

169169
onUploadFinished: {
170-
fileSyncHandler.ignoreNextChange = true;
170+
var extension = remoteFilePath.split('.').pop();
171+
fileSyncHandler.ignoreNextChange = ["ngc", "txt"].indexOf(extension) != -1;
171172
executeProgram(remoteFilePath);
172173
}
173174
}

src/applicationcontrols/ApplicationFileDialog.qml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ FileDialog {
3838

3939
nameFilters: {
4040
var filters = []
41-
var allExtensions = ["*.ngc"]
41+
var allExtensions = ["*.ngc *.txt"]
4242

4343
if ((status.synced) && (status.config.programExtension !== undefined))
4444
{
@@ -63,6 +63,7 @@ FileDialog {
6363

6464
filters.unshift(qsTr("All machinable files (%1)").arg(allExtensions.join(" ")));
6565
filters.push(qsTr("rs274ngc files (*.ngc)"));
66+
filters.push(qsTr("Text files (*.txt)"));
6667
filters.push(qsTr("All files (*)"));
6768
return filters;
6869
}

0 commit comments

Comments
 (0)