fstl-app / fstl

A fast STL file viewer
449 stars 105 forks source link

Fix initial settings #54

Closed mboerwinkle closed 4 years ago

mboerwinkle commented 4 years ago

When opening fstl, the initial rebuild_recent_files (window.cpp, 75) fails because the QCoreApplication set functions (which are used to determine the location for persistent settings files) have not yet been set. The initial rebuild happens as part of window(new Window()) in the initialization section of the app constructor, but the core application settings get set later in the app construction. This pull moves those core application setting assignments to main.cpp so that any settings loaded as any part of the app will always know where they should read from.

DeveloperPaul123 commented 4 years ago

Looks ok to me. I'll wait for @mkeeter to take a look

mkeeter commented 4 years ago

Looks good, thanks!