mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-04 12:01:31 +02:00
load NodeList and Profile settings with menu settings load
This commit is contained in:
parent
d3b95d19a1
commit
f7a0dd514e
2 changed files with 4 additions and 16 deletions
|
@ -182,13 +182,8 @@ Application::Application(int& argc, char** argv, timeval &startup_time) :
|
|||
|
||||
_settings = new QSettings(this);
|
||||
|
||||
// load user profile data
|
||||
_profile.loadData(_settings);
|
||||
|
||||
// check if there is a saved domain server hostname
|
||||
// this must be done now instead of with the other setting checks to allow manual override with
|
||||
// --domain or --local options
|
||||
NodeList::getInstance()->loadData(_settings);
|
||||
// call Menu getInstance static method to set up the menu
|
||||
_window->setMenuBar(Menu::getInstance());
|
||||
|
||||
// Check to see if the user passed in a command line option for loading a local
|
||||
// Voxel File.
|
||||
|
@ -210,9 +205,6 @@ Application::Application(int& argc, char** argv, timeval &startup_time) :
|
|||
NodeList::getInstance()->startSilentNodeRemovalThread();
|
||||
|
||||
_window->setCentralWidget(_glWidget);
|
||||
|
||||
// call Menu getInstance static method to set up the menu
|
||||
_window->setMenuBar(Menu::getInstance());
|
||||
|
||||
_networkAccessManager = new QNetworkAccessManager(this);
|
||||
QNetworkDiskCache* cache = new QNetworkDiskCache(_networkAccessManager);
|
||||
|
|
|
@ -512,8 +512,8 @@ void Menu::loadSettings(QSettings* settings) {
|
|||
scanMenuBar(&loadAction, settings);
|
||||
Application::getInstance()->getAvatar()->loadData(settings);
|
||||
Application::getInstance()->getSwatch()->loadData(settings);
|
||||
|
||||
// NodeList and profile settings are not loaded here because the Application will load them immediately on start
|
||||
Application::getInstance()->getProfile()->loadData(settings);
|
||||
NodeList::getInstance()->loadData(settings);
|
||||
}
|
||||
|
||||
void Menu::saveSettings(QSettings* settings) {
|
||||
|
@ -535,11 +535,7 @@ void Menu::saveSettings(QSettings* settings) {
|
|||
scanMenuBar(&saveAction, settings);
|
||||
Application::getInstance()->getAvatar()->saveData(settings);
|
||||
Application::getInstance()->getSwatch()->saveData(settings);
|
||||
|
||||
// save the user profile
|
||||
Application::getInstance()->getProfile()->saveData(settings);
|
||||
|
||||
// ask the NodeList to save its data
|
||||
NodeList::getInstance()->saveData(settings);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue