diff options
Diffstat (limited to 'firmware/target/hosted/sdl/button-sdl.c')
-rw-r--r-- | firmware/target/hosted/sdl/button-sdl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/target/hosted/sdl/button-sdl.c b/firmware/target/hosted/sdl/button-sdl.c index 25dad09341..9c8188a12f 100644 --- a/firmware/target/hosted/sdl/button-sdl.c +++ b/firmware/target/hosted/sdl/button-sdl.c | |||
@@ -261,7 +261,12 @@ static bool event_handler(SDL_Event *event) | |||
261 | break; | 261 | break; |
262 | } | 262 | } |
263 | case SDL_QUIT: | 263 | case SDL_QUIT: |
264 | /* Post SYS_POWEROFF event. Will post SDL_USEREVENT in shutdown_hw() if successful. */ | ||
265 | queue_broadcast(SYS_POWEROFF, 0); | ||
266 | break; | ||
267 | case SDL_USEREVENT: | ||
264 | return true; | 268 | return true; |
269 | break; | ||
265 | } | 270 | } |
266 | 271 | ||
267 | return false; | 272 | return false; |