Merge pull request #8920 from ZappoMan/launchFromSteamOptions

add app property when the app was launched from steam
This commit is contained in:
Brad Hefta-Gaub 2016-10-26 14:25:46 -07:00 committed by GitHub
commit 15ee56a50f

View file

@ -161,6 +161,9 @@ int main(int argc, const char* argv[]) {
QSettings::setDefaultFormat(QSettings::IniFormat);
Application app(argc, const_cast<char**>(argv), startupTime, runServer, serverContentPathOptionValue);
bool launchedFromSteam = SteamClient::isRunning();
app.setProperty("com.highfidelity.launchedFromSteam", launchedFromSteam);
// If we failed the OpenGLVersion check, log it.
if (override) {
auto accountManager = DependencyManager::get<AccountManager>();