fix(color): play startup 'hello' audio before Lua widgets (#7096)

This commit is contained in:
philmoz
2026-02-18 16:52:24 +10:00
committed by GitHub
parent 0df8d8650f
commit 2e609d8223
8 changed files with 28 additions and 47 deletions
-2
View File
@@ -182,8 +182,6 @@ if(USBJ_EX)
add_gui_src(model/model_usbjoystick.cpp)
endif()
set(SRC ${SRC} storage/modelslist.cpp)
option(UI_PERF_MONITOR "Draw frame rate and CPU usage" OFF)
if(UI_PERF_MONITOR)
add_definitions(-DUI_PERF_MONITOR)
@@ -368,6 +368,10 @@ class ModelsPageBody : public Window
loadModel(g_eeGeneral.currModelFilename, true);
modelslist.setCurrentModel(model);
// Main view layout
LayoutFactory::deleteCustomScreens();
LayoutFactory::loadCustomScreens();
storageDirty(EE_GENERAL);
storageCheck(true);
}
@@ -622,7 +626,8 @@ void ModelLabelsWindow::newModel()
snprintf(path, LEN_BUFFER, "%s/%s", TEMPLATES_PATH, folder.c_str());
// Read model template
loadModelTemplate((name + YAML_EXT).c_str(), path);
LayoutFactory::deleteCustomScreens(true);
loadModel((name + YAML_EXT).c_str(), false, path);
storageFlushCurrentModel();
storageCheck(true);
@@ -638,6 +643,9 @@ void ModelLabelsWindow::newModel()
}
#endif
}
// Main view layout
LayoutFactory::loadCustomScreens();
});
}