mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 09:51:13 +02:00
src/neutrino.cpp: add cancel message to RC_standby_on and RC_power_off (THX Gaucho316)
Origin commit data
------------------
Commit: 0f8c9bbef1
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-11-16 (Fri, 16 Nov 2012)
This commit is contained in:
@@ -2363,7 +2363,7 @@ _repeat:
|
|||||||
else if (msg == CRCInput::RC_standby_on) {
|
else if (msg == CRCInput::RC_standby_on) {
|
||||||
if (data == 0)
|
if (data == 0)
|
||||||
g_RCInput->postMsg(NeutrinoMessages::STANDBY_ON, 0);
|
g_RCInput->postMsg(NeutrinoMessages::STANDBY_ON, 0);
|
||||||
return messages_return::handled;
|
return messages_return::cancel_all | messages_return::handled;
|
||||||
}
|
}
|
||||||
else if ((msg == CRCInput::RC_standby_off) || (msg == CRCInput::RC_power_on)) {
|
else if ((msg == CRCInput::RC_standby_off) || (msg == CRCInput::RC_power_on)) {
|
||||||
if (data == 0)
|
if (data == 0)
|
||||||
@@ -2372,7 +2372,7 @@ _repeat:
|
|||||||
}
|
}
|
||||||
else if (msg == CRCInput::RC_power_off) {
|
else if (msg == CRCInput::RC_power_off) {
|
||||||
g_RCInput->postMsg(NeutrinoMessages::SHUTDOWN, 0);
|
g_RCInput->postMsg(NeutrinoMessages::SHUTDOWN, 0);
|
||||||
return messages_return::handled;
|
return messages_return::cancel_all | messages_return::handled;
|
||||||
}
|
}
|
||||||
else if (msg == (neutrino_msg_t) g_settings.key_power_off /*CRCInput::RC_standby*/) {
|
else if (msg == (neutrino_msg_t) g_settings.key_power_off /*CRCInput::RC_standby*/) {
|
||||||
if (data == 0) {
|
if (data == 0) {
|
||||||
|
Reference in New Issue
Block a user