fix: "Show Channel Monitor" btn only on touch only radios
Resurrecting evil PCBNV14 define as @raphaelcoeffic said he'd quit if he had to keep scrolling past the "show channel monitor" button
This commit is contained in:
committed by
Peter Feerick
parent
9c951224c7
commit
6de2c35e80
@@ -61,7 +61,9 @@ ModelMenu::ModelMenu():
|
|||||||
#endif
|
#endif
|
||||||
addTab(new ModelTelemetryPage());
|
addTab(new ModelTelemetryPage());
|
||||||
|
|
||||||
|
#if defined(PCBNV14) || defined(PCBPL18)
|
||||||
addGoToMonitorsButton();
|
addGoToMonitorsButton();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void ModelMenu::onEvent(event_t event)
|
void ModelMenu::onEvent(event_t event)
|
||||||
@@ -76,6 +78,7 @@ void ModelMenu::onEvent(event_t event)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(PCBNV14) || defined(PCBPL18)
|
||||||
void ModelMenu::addGoToMonitorsButton()
|
void ModelMenu::addGoToMonitorsButton()
|
||||||
{
|
{
|
||||||
OpenTxTheme::instance()->createTextButton(
|
OpenTxTheme::instance()->createTextButton(
|
||||||
@@ -84,4 +87,5 @@ void ModelMenu::addGoToMonitorsButton()
|
|||||||
pushEvent(EVT_KEY_FIRST(KEY_MODEL));
|
pushEvent(EVT_KEY_FIRST(KEY_MODEL));
|
||||||
return 0;
|
return 0;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -35,8 +35,10 @@ class ModelMenu : public TabsGroup
|
|||||||
std::string getName() const override { return "ModelMenu"; }
|
std::string getName() const override { return "ModelMenu"; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(PCBNV14) || defined(PCBPL18)
|
||||||
protected:
|
protected:
|
||||||
void addGoToMonitorsButton(void);
|
void addGoToMonitorsButton(void);
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _MENU_MODEL_H_
|
#endif // _MENU_MODEL_H_
|
||||||
|
|||||||
Reference in New Issue
Block a user