mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 15:45:38 +00:00
Changed the execution order of some custom event scripts.
This commit is contained in:
parent
fdf63a9ad0
commit
92c4ae3cdf
|
@ -287,15 +287,15 @@ namespace Utils
|
||||||
switch (sQuitMode) {
|
switch (sQuitMode) {
|
||||||
case QuitMode::REBOOT: {
|
case QuitMode::REBOOT: {
|
||||||
LOG(LogInfo) << "Rebooting system";
|
LOG(LogInfo) << "Rebooting system";
|
||||||
Scripting::fireEvent("quit");
|
|
||||||
Scripting::fireEvent("reboot");
|
Scripting::fireEvent("reboot");
|
||||||
|
Scripting::fireEvent("quit");
|
||||||
runRebootCommand();
|
runRebootCommand();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case QuitMode::POWEROFF: {
|
case QuitMode::POWEROFF: {
|
||||||
LOG(LogInfo) << "Powering off system";
|
LOG(LogInfo) << "Powering off system";
|
||||||
Scripting::fireEvent("quit");
|
|
||||||
Scripting::fireEvent("poweroff");
|
Scripting::fireEvent("poweroff");
|
||||||
|
Scripting::fireEvent("quit");
|
||||||
runPoweroffCommand();
|
runPoweroffCommand();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue