diff --git a/radio/src/gui/colorlcd/theme_manager.cpp b/radio/src/gui/colorlcd/theme_manager.cpp index 5bf65cd69..83d7a1ec4 100644 --- a/radio/src/gui/colorlcd/theme_manager.cpp +++ b/radio/src/gui/colorlcd/theme_manager.cpp @@ -20,6 +20,7 @@ */ #include "theme_manager.h" +#include "hal/abnormal_reboot.h" #include "../../storage/sdcard_common.h" #include "../../storage/yaml/yaml_bits.h" #include "../../storage/yaml/yaml_tree_walker.h" @@ -327,7 +328,8 @@ void ThemePersistance::scanForThemes() void ThemePersistance::refresh() { - scanForThemes(); + if (!UNEXPECTED_SHUTDOWN()) + scanForThemes(); insertDefaultTheme(); }