feat: Prevent OFF for internal module in hardware settings (#2654)
* Prevent OFF for internal module in hardware settings * chore: Change "Mode" to "Type"
This commit is contained in:
@@ -40,7 +40,7 @@ InternalModuleWindow::InternalModuleWindow(Window *parent) :
|
|||||||
FlexGridLayout grid(col_dsc, row_dsc, 2);
|
FlexGridLayout grid(col_dsc, row_dsc, 2);
|
||||||
setLayout(&grid);
|
setLayout(&grid);
|
||||||
|
|
||||||
new StaticText(this, rect_t{}, STR_MODE, 0, COLOR_THEME_PRIMARY1);
|
new StaticText(this, rect_t{}, STR_TYPE, 0, COLOR_THEME_PRIMARY1);
|
||||||
|
|
||||||
auto box = new FormGroup(this, rect_t{});
|
auto box = new FormGroup(this, rect_t{});
|
||||||
box->setFlexLayout(LV_FLEX_FLOW_ROW, lv_dpx(8));
|
box->setFlexLayout(LV_FLEX_FLOW_ROW, lv_dpx(8));
|
||||||
|
|||||||
@@ -737,7 +737,6 @@ bool areModulesConflicting(int intModuleType, int extModuleType)
|
|||||||
bool isInternalModuleSupported(int moduleType)
|
bool isInternalModuleSupported(int moduleType)
|
||||||
{
|
{
|
||||||
switch(moduleType) {
|
switch(moduleType) {
|
||||||
case MODULE_TYPE_NONE: return true;
|
|
||||||
#if defined(INTERNAL_MODULE_MULTI)
|
#if defined(INTERNAL_MODULE_MULTI)
|
||||||
case MODULE_TYPE_MULTIMODULE: return true;
|
case MODULE_TYPE_MULTIMODULE: return true;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user