File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments