mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
Don't show tablet in test mode, so that it won't appear in snapshots. Its location is not fixed - this will cause image comparisons to fail)
This commit is contained in:
parent
590b4f91c5
commit
87220e501a
1 changed files with 9 additions and 0 deletions
|
@ -1033,6 +1033,7 @@ 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));
|
||||
|
@ -2265,6 +2266,14 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo
|
|||
|
||||
qCDebug(interfaceapp) << "Metaverse session ID is" << uuidStringWithoutCurlyBraces(accountManager->getSessionID());
|
||||
|
||||
// Don't show tablet in test mode, so that it won't appear in snapshots
|
||||
// (its 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);
|
||||
|
|
Loading…
Reference in a new issue