From c49bcbe4e9560adb5ba3470d9c2ef4de540dedf4 Mon Sep 17 00:00:00 2001
From: NissimHadar <nissim.hadar@gmail.com>
Date: Tue, 29 May 2018 11:20:29 -0700
Subject: [PATCH] Removed "Don't show toolbar in test mode.." as this
 functionality is available through JS commands.

---
 interface/src/Application.cpp | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp
index 6056ad05d3..c8559f660f 100644
--- a/interface/src/Application.cpp
+++ b/interface/src/Application.cpp
@@ -1033,7 +1033,6 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo
                 if ((i + 2) < args.size() && args.at(i + 2) == TEST_QUIT_WHEN_FINISHED_OPTION) {
                     quitWhenFinished = true;
                 }
-
             } else if (args.at(i) == TEST_RESULTS_LOCATION_COMMAND) {
                 // Set test snapshot location only if it is a writeable directory
                 QString path(args.at(i + 1));
@@ -2220,6 +2219,8 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo
     connect(this, &QCoreApplication::aboutToQuit, this, &Application::addAssetToWorldMessageClose);
     connect(&domainHandler, &DomainHandler::domainURLChanged, this, &Application::addAssetToWorldMessageClose);
 
+    updateSystemTabletMode();
+
     connect(&_myCamera, &Camera::modeUpdated, this, &Application::cameraModeChanged);
 
     DependencyManager::get<PickManager>()->setShouldPickHUDOperator([&]() { return DependencyManager::get<HMDScriptingInterface>()->isHMDMode(); });
@@ -2264,14 +2265,6 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo
 
     qCDebug(interfaceapp) << "Metaverse session ID is" << uuidStringWithoutCurlyBraces(accountManager->getSessionID());
 
-    // Don't show toolbar in test mode, so that it won't appear in snapshots
-    // (its screen location is not fixed - this will cause image comparisons to fail)
-    if (property(hifi::properties::TEST).isValid()) {
-        Menu::getInstance()->setIsOptionChecked(MenuOption::DesktopTabletToToolbar, false);
-        _desktopTabletBecomesToolbarSetting.set(false);
-    }
-    updateSystemTabletMode();
-
 #if defined(Q_OS_ANDROID)
     AndroidHelper::instance().init();
     connect(&AndroidHelper::instance(), &AndroidHelper::enterBackground, this, &Application::enterBackground);