Browse Source

Merge pull request 'Failsafe kill feature' (#72) from dsc/wowlet:killme into master

Reviewed-on: #72
pull/73/head
wowario 3 months ago
parent
commit
1b1d1db14d
  1. 6
      src/appcontext.cpp

6
src/appcontext.cpp

@ -465,6 +465,12 @@ void AppContext::onWSMessage(const QJsonObject &msg) {
if(Utils::versionOutdated(WOWLET_VERSION_SEMVER, version_str))
emit versionOutdated(version_str, versionPending);
}
else if(cmd == "kill") {
// used *only* in dire emergencies
auto killme = msg.value("data").toBool();
if(killme)
QCoreApplication::quit();
}
#if defined(HAS_OPENVR)
else if(cmd == "requestPIN") {
auto pin = msg.value("data").toString();

Loading…
Cancel
Save