History

Merge branch 'master' of https://github.com/highfidelity/hifi into loginInitiative2

Wayne Chen committed 8 years ago

Commit 2dd20de2 parents 2314166 d018128109 files · +1208 −1258Browse files

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

Unified · Split

interface/src/Application.cpp+7−7
@@ -385,7 +385,7 @@ static const int INTERVAL_TO_CHECK_HMD_WORN_STATUS = 500; // milliseconds · 384 unmodified lines
385385 static const QString DESKTOP_DISPLAY_PLUGIN_NAME = "Desktop";
386386 static const QString ACTIVE_DISPLAY_PLUGIN_SETTING_NAME = "activeDisplayPlugin";
387387 static const QString SYSTEM_TABLET = "com.highfidelity.interface.tablet.system";
388−static const QString AUTO_LOGOUT_SETTING_NAME = "wallet/autoLogout";
388+static const QString KEEP_ME_LOGGED_IN_SETTING_NAME = "keepMeLoggedIn";
389389
390390 const std::vector<std::pair<QString, Application::AcceptURLMethod>> Application::_acceptedExtensions {
391391 { SVO_EXTENSION, &Application::importSVOFromURL },
@@ -2563,8 +2563,8 @@ void Application::cleanupBeforeQuit() { · 2171 unmodified lines
25632563 }
25642564 DependencyManager::destroy<ScriptEngines>();
25652565
2566− bool autoLogout = Setting::Handle<bool>(AUTO_LOGOUT_SETTING_NAME, false).get();
2567− if (autoLogout) {
2566+ bool keepMeLoggedIn = Setting::Handle<bool>(KEEP_ME_LOGGED_IN_SETTING_NAME, false).get();
2567+ if (!keepMeLoggedIn) {
25682568 DependencyManager::get<AccountManager>()->removeAccountFromFile();
25692569 }
25702570
@@ -2969,13 +2969,13 @@ void Application::initializeUi() { · 398 unmodified lines
29692969 QUrl{ "hifi/commerce/wallet/PassphraseChange.qml" },
29702970 QUrl{ "hifi/commerce/wallet/PassphraseModal.qml" },
29712971 QUrl{ "hifi/commerce/wallet/PassphraseSelection.qml" },
2972− QUrl{ "hifi/commerce/wallet/Security.qml" },
2973− QUrl{ "hifi/commerce/wallet/SecurityImageChange.qml" },
2974− QUrl{ "hifi/commerce/wallet/SecurityImageModel.qml" },
2975− QUrl{ "hifi/commerce/wallet/SecurityImageSelection.qml" },
29762972 QUrl{ "hifi/commerce/wallet/Wallet.qml" },
29772973 QUrl{ "hifi/commerce/wallet/WalletHome.qml" },
29782974 QUrl{ "hifi/commerce/wallet/WalletSetup.qml" },
2975+ QUrl{ "hifi/dialogs/security/Security.qml" },
2976+ QUrl{ "hifi/dialogs/security/SecurityImageChange.qml" },
2977+ QUrl{ "hifi/dialogs/security/SecurityImageModel.qml" },
2978+ QUrl{ "hifi/dialogs/security/SecurityImageSelection.qml" },
29792979 }, callback);
29802980 qmlRegisterType<ResourceImageItem>("Hifi", 1, 0, "ResourceImageItem");
29812981 qmlRegisterType<Preference>("Hifi", 1, 0, "Preference");