MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / onHide

Method onHide

Tactility/Source/app/display/Display.cpp:318–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
336extern const AppManifest manifest = {

Callers

nothing calls this directly

Calls 4

reloadSettingsMethod · 0.80
saveFunction · 0.50
findServiceFunction · 0.50
dispatchMethod · 0.45

Tested by

no test coverage detected