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:
Peter Feerick
2022-10-01 20:48:32 +10:00
committed by Peter Feerick
parent 9c951224c7
commit 6de2c35e80
2 changed files with 7 additions and 1 deletions
+5 -1
View File
@@ -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
+2
View File
@@ -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_