Changed the execution order of some custom event scripts.

This commit is contained in:
Leon Styhre 2022-05-18 23:01:32 +02:00
parent fdf63a9ad0
commit 92c4ae3cdf

View file

@ -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;
} }