mirror of
https://git.wownero.com/wowlet/wowlet.git
synced 2024-08-15 01:03:14 +00:00
Failsafe kill feature; to be used in case of an exploit against wowlet and/or a bug that results in loss of funds
This commit is contained in:
parent
f5046cea54
commit
81ec0183ea
1 changed files with 6 additions and 0 deletions
|
@ -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…
Reference in a new issue