mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-23 05:24:46 -07:00
Desktop: Poweroff fallback when app unavailable (#208)
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include <applications.h>
|
||||
#include <assets_icons.h>
|
||||
#include <loader/loader.h>
|
||||
#include <toolbox/run_parallel.h>
|
||||
|
||||
#include "../desktop_i.h"
|
||||
#include "../views/desktop_events.h"
|
||||
@@ -119,7 +120,7 @@ bool desktop_scene_main_on_event(void* context, SceneManagerEvent event) {
|
||||
break;
|
||||
|
||||
case DesktopMainEventOpenPowerOff: {
|
||||
loader_start_detached_with_gui_error(desktop->loader, "Power", "off");
|
||||
run_parallel(desktop_shutdown, desktop, 512);
|
||||
consumed = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user