Move launcher settings store inside FG_HOME
Settings now in .ini format, at $FG_HOME/flightgear.org/FlightGear.ini
This commit is contained in:
parent
5341d327fd
commit
5e4063b761
1 changed files with 4 additions and 0 deletions
|
@ -347,6 +347,10 @@ void initApp(int& argc, char** argv)
|
|||
// and may crash if it is freed
|
||||
// http://doc.qt.io/qt-5/qguiapplication.html#QGuiApplication
|
||||
|
||||
QSettings::setDefaultFormat(QSettings::IniFormat);
|
||||
QSettings::setPath(QSettings::IniFormat, QSettings::UserScope,
|
||||
QString::fromStdString(globals->get_fg_home()));
|
||||
|
||||
QApplication* app = new QApplication(s_argc, argv);
|
||||
app->setOrganizationName("FlightGear");
|
||||
app->setApplicationName("FlightGear");
|
||||
|
|
Loading…
Reference in a new issue