fix(color): Restore "go to channel monitor" Button (#2390)
* Restore go to channel monitor go_to_monitor_Button * Remove unnecessary parameter.
This commit is contained in:
@@ -61,6 +61,7 @@ ModelMenu::ModelMenu():
|
||||
#endif
|
||||
addTab(new ModelTelemetryPage());
|
||||
|
||||
addGoToMonitorsButton();
|
||||
}
|
||||
|
||||
void ModelMenu::onEvent(event_t event)
|
||||
@@ -74,3 +75,13 @@ void ModelMenu::onEvent(event_t event)
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void ModelMenu::addGoToMonitorsButton()
|
||||
{
|
||||
OpenTxTheme::instance()->createTextButton(
|
||||
&header, {LCD_W / 2 + 6, MENU_TITLE_TOP + 1, LCD_W / 2 - 8, MENU_TITLE_HEIGHT - 2},
|
||||
STR_OPEN_CHANNEL_MONITORS, [=]() {
|
||||
pushEvent(EVT_KEY_FIRST(KEY_MODEL));
|
||||
return 0;
|
||||
});
|
||||
}
|
||||
@@ -34,6 +34,9 @@ class ModelMenu : public TabsGroup
|
||||
#if defined(DEBUG_WINDOWS)
|
||||
std::string getName() const override { return "ModelMenu"; }
|
||||
#endif
|
||||
|
||||
protected:
|
||||
void addGoToMonitorsButton(void);
|
||||
};
|
||||
|
||||
#endif // _MENU_MODEL_H_
|
||||
|
||||
Reference in New Issue
Block a user