fstl-app / fstl

A fast STL file viewer
448 stars 105 forks source link

Remember application settings #78

Closed mboerwinkle closed 2 years ago

mboerwinkle commented 2 years ago

Addresses #77. Noteworthy facets of this change:

Here is an example configuration file:

[General]
autoreload=false
drawAxes=true
drawMode=2
invertZoom=true
projection=orthographic
recentFiles=/home/martin/test.stl, /home/martin/test2.stl

Please let me know if you have any feedback.

mboerwinkle commented 2 years ago

Forgot about the window geometry component of the request - added a windowGeometry setting using the method found here https://doc.qt.io/qt-5/qwidget.html#saveGeometry. This setting updates on resize or move (as the actions occur, same as the other settings), as opposed to the example code, which updates on window close.

DeveloperPaul123 commented 2 years ago

Also, sorry for the delay on getting back to this 😅