From 92c4ae3cdfbf482b9d09efd9c94782fd64fd0795 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Wed, 18 May 2022 23:01:32 +0200 Subject: [PATCH] Changed the execution order of some custom event scripts. --- es-core/src/utils/PlatformUtil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/es-core/src/utils/PlatformUtil.cpp b/es-core/src/utils/PlatformUtil.cpp index 5912f9f50..b0938a667 100644 --- a/es-core/src/utils/PlatformUtil.cpp +++ b/es-core/src/utils/PlatformUtil.cpp @@ -287,15 +287,15 @@ namespace Utils switch (sQuitMode) { case QuitMode::REBOOT: { LOG(LogInfo) << "Rebooting system"; - Scripting::fireEvent("quit"); Scripting::fireEvent("reboot"); + Scripting::fireEvent("quit"); runRebootCommand(); break; } case QuitMode::POWEROFF: { LOG(LogInfo) << "Powering off system"; - Scripting::fireEvent("quit"); Scripting::fireEvent("poweroff"); + Scripting::fireEvent("quit"); runPoweroffCommand(); break; }