| 316 | } |
| 317 | |
| 318 | void onHide(AppContext& app) override { |
| 319 | if (displaySettingsUpdated) { |
| 320 | // Dispatch it, so file IO doesn't block the UI |
| 321 | const settings::display::DisplaySettings settings_to_save = displaySettings; |
| 322 | getMainDispatcher().dispatch([settings_to_save] { |
| 323 | settings::display::save(settings_to_save); |
| 324 | #ifdef ESP_PLATFORM |
| 325 | // Notify DisplayIdle service to reload settings |
| 326 | auto displayIdle = service::displayidle::findService(); |
| 327 | if (displayIdle) { |
| 328 | displayIdle->reloadSettings(); |
| 329 | } |
| 330 | #endif |
| 331 | }); |
| 332 | } |
| 333 | } |
| 334 | }; |
| 335 | |
| 336 | extern const AppManifest manifest = { |
nothing calls this directly
no test coverage detected