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
+4
View File
@@ -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(
@@ -85,3 +88,4 @@ void ModelMenu::addGoToMonitorsButton()
return 0; return 0;
}); });
} }
#endif
+2
View File
@@ -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_