History

Totally removed Application's setting memember

Atlante45 committed 11 years ago

Commit c2b7ff11 parent 92e9df011 files · +94 −142Browse files

Showing the changes to interface/src/Application.cpp (1 of 11 files). Show all

Unified · Split

interface/src/Application.cpp+1−18
@@ -356,9 +356,6 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) : · 355 unmodified lines
356356
357357 connect(addressManager.data(), &AddressManager::rootPlaceNameChanged, this, &Application::updateWindowTitle);
358358
359− _settings = new QSettings(this);
360− _numChangedSettings = 0;
361−
362359 #ifdef _WIN32
363360 WSADATA WsaData;
364361 int wsaresult = WSAStartup(MAKEWORD(2,2), &WsaData);
@@ -514,10 +511,6 @@ Application::~Application() { · 149 unmodified lines
514511
515512 void Application::saveSettings() {
516513 Menu::getInstance()->saveSettings();
517− _rearMirrorTools->saveSettings(_settings);
518−
519− _settings->sync();
520− _numChangedSettings = 0;
521514 }
522515
523516 void Application::initializeGL() {
@@ -1439,10 +1432,6 @@ void Application::idle() { · 915 unmodified lines
14391432
14401433 // After finishing all of the above work, restart the idle timer, allowing 2ms to process events.
14411434 idleTimer->start(2);
1442−
1443− if (_numChangedSettings > 0) {
1444− saveSettings();
1445− }
14461435 }
14471436 }
14481437 }
@@ -1711,16 +1700,13 @@ void Application::init() { · 262 unmodified lines
17111700 _metavoxels.init();
17121701
17131702 auto glCanvas = DependencyManager::get<GLCanvas>();
1714− _rearMirrorTools = new RearMirrorTools(glCanvas.data(), _mirrorViewRect, _settings);
1703+ _rearMirrorTools = new RearMirrorTools(glCanvas.data(), _mirrorViewRect);
17151704
17161705 connect(_rearMirrorTools, SIGNAL(closeView()), SLOT(closeMirrorView()));
17171706 connect(_rearMirrorTools, SIGNAL(restoreView()), SLOT(restoreMirrorView()));
17181707 connect(_rearMirrorTools, SIGNAL(shrinkView()), SLOT(shrinkMirrorView()));
17191708 connect(_rearMirrorTools, SIGNAL(resetView()), SLOT(resetSensors()));
17201709
1721− // save settings when avatar changes
1722− connect(_myAvatar, &MyAvatar::transformChanged, this, &Application::bumpSettings);
1723−
17241710 #ifdef USE_BULLET_PHYSICS
17251711 EntityTree* tree = _entities.getTree();
17261712 _physicsEngine.setEntityTree(tree);
@@ -3551,7 +3537,6 @@ ScriptEngine* Application::loadScript(const QString& scriptFilename, bool isUser · 1824 unmodified lines
35513537 if (activateMainWindow && !loadScriptFromEditor) {
35523538 _window->activateWindow();
35533539 }
3554− bumpSettings();
35553540
35563541 return scriptEngine;
35573542 }
@@ -3579,7 +3564,6 @@ void Application::scriptFinished(const QString& scriptName) { · 21 unmodified lines
35793564 _scriptEnginesHash.erase(it);
35803565 _runningScriptsWidget->scriptStopped(scriptName);
35813566 _runningScriptsWidget->setRunningScripts(getRunningScripts());
3582− bumpSettings();
35833567 }
35843568 }
35853569
@@ -3675,7 +3659,6 @@ void Application::openUrl(const QUrl& url) { · 89 unmodified lines
36753659 }
36763660
36773661 void Application::updateMyAvatarTransform() {
3678− bumpSettings();
36793662 #ifdef USE_BULLET_PHYSICS
36803663 const float SIMULATION_OFFSET_QUANTIZATION = 16.0f; // meters
36813664 glm::vec3 avatarPosition = _myAvatar->getPosition();

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t