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
|
||||
addTab(new ModelTelemetryPage());
|
||||
|
||||
#if defined(PCBNV14) || defined(PCBPL18)
|
||||
addGoToMonitorsButton();
|
||||
#endif
|
||||
}
|
||||
|
||||
void ModelMenu::onEvent(event_t event)
|
||||
@@ -76,6 +78,7 @@ void ModelMenu::onEvent(event_t event)
|
||||
#endif
|
||||
}
|
||||
|
||||
#if defined(PCBNV14) || defined(PCBPL18)
|
||||
void ModelMenu::addGoToMonitorsButton()
|
||||
{
|
||||
OpenTxTheme::instance()->createTextButton(
|
||||
@@ -84,4 +87,5 @@ void ModelMenu::addGoToMonitorsButton()
|
||||
pushEvent(EVT_KEY_FIRST(KEY_MODEL));
|
||||
return 0;
|
||||
});
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -35,8 +35,10 @@ class ModelMenu : public TabsGroup
|
||||
std::string getName() const override { return "ModelMenu"; }
|
||||
#endif
|
||||
|
||||
#if defined(PCBNV14) || defined(PCBPL18)
|
||||
protected:
|
||||
void addGoToMonitorsButton(void);
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif // _MENU_MODEL_H_
|
||||
|
||||
Reference in New Issue
Block a user