mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 07:11:29 +02:00
Merge pull request 'Failsafe kill feature' (#72) from dsc/wowlet:killme into master
Reviewed-on: https://git.wownero.com/wowlet/wowlet/pulls/72
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user