- changed title to Save/Open project issues
- edited description
Save/Open project issues
Using v8.991
Save file is suggesting to save a project without extension. Like theProject_20200409_124603
So, when trying to open a project, the file browser do not find anything. I have to choose to display All files
instead of Flatcam Project
then I will be able to select a file.
If you are using Flatcam Project
you should use something filter it with. Like the extension. So, when saving the project, you should add the extension automatically. If you don't have any, I would like to suggest .for
or .flc
. However, what I prefer is to remove the file filter for default, because de user knows what he wants to open.
Comments (13)
-
reporter -
Save file is suggesting to save a project without extension. Like the
Project_20200409_124603
Not true.
-
reporter It is true for me.
I have no `Save as type` thing here.
If you are saving a project, why do you need such a selector? Just append the
.Flatprj
in the end tho. It will work everywhere, in all OS.
-
You did not specify Linux and that’s the reason I showed you the printscreen from Windows.
I know that you are using Linux but somebody else who may want to help solve the issue may not. It’s important that every issue is documented properly, the issues will remain in history and someone reading them may not understand what is going on.I don’t know why the Linux file manager that you use does not fill in the extension neither why in the filter selector the extensions are not displayed.
The QFileDialog widget uses the native window (whatever the OS has to offer) and it seems that the Linux one lacks.Regarding adding the extension, it seems to me like more of a hack and it will create issues in Windows (which is what I develop for) which will need creating different code based on the OS that is run into, that’s why we need to find out the why so we don’t have issues further along the line …
-
I found something that may help.
https://stackoverflow.com/questions/46471606/qfiledialog-created-without-file-extension-in-linux
I will try to add this, the only change I see is that 0 as parameter.
LE: Just saw that he is actually adding the filename and extension to the path which is what you suggested. -
Ok, I found a solution. I will implement it as soon as possible.
-
Solved but in the save field, in Linux, the user will still don’t see the extension yet, when the user saves the right extension will be added. In case that there are multiple file extensions that can be selected to save from (like *.nc = gcode or *.plt = HPGL code) if user selects one extension it will be used when saved but there will no feedback in the dialog. That’s the behavior in Linux file manager and it does not have anything to do with FlatCAM.
-
- changed status to resolved
Solved in my working copy, it will be available in the next release 8.992.
-
reporter Nice! Do you have a specific schedule where these minor versions are made available?
-
reporter Also, just an FYI, I renamed my project file to
Project_20200409_124603.Flatprj using the extension you said. But in the Project, open dialog can’t see the file. The filter for project files is not working there.
-
Hi, Happy Easter!
(if that is the case for you)
.FlatPrj is the extension and not .Flatprj. -
reporter Hehe, that was unexpected! Thank you, for you too dude.
Ok (I tough you were windows user, haha) I’m kidding, my mistake, I will test it.
-
- fixed issue
#394- the saveDialog in Linux did not added the selected extension - fixed issue
#389- in previous commits - fixed issue
#391- in previous commits
→ <<cset abce81d802df>>
- fixed issue
- Log in to comment