fix(color): stop attempt to load themes when in emergency mode (#5075)

This commit is contained in:
philmoz
2024-05-29 09:18:16 +10:00
committed by GitHub
parent 27f53ff195
commit e4630e4c7f
+3 -1
View File
@@ -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();
}