Refactoring
This commit is contained in:
@@ -91,4 +91,8 @@ void drawCurvePoint(int x, int y, LcdFlags color);
|
||||
extern Layout * customScreens[MAX_CUSTOM_SCREENS];
|
||||
extern Topbar * topbar;
|
||||
|
||||
#define IS_MAIN_VIEW_DISPLAYED() menuHandlers[0] == menuMainView
|
||||
#define IS_TELEMETRY_VIEW_DISPLAYED() false
|
||||
#define IS_OTHER_VIEW_DISPLAYED() false
|
||||
|
||||
#endif // _GUI_H_
|
||||
|
||||
@@ -503,7 +503,7 @@ enum {
|
||||
MENU_OFFSET_EXTERNAL
|
||||
};
|
||||
extern uint8_t popupMenuOffsetType;
|
||||
const char * displayPopupMenu(evt_t event);
|
||||
const char * runPopupMenu(evt_t event);
|
||||
extern void (*popupMenuHandler)(const char * result);
|
||||
|
||||
#define TEXT_FILENAME_MAXLEN 40
|
||||
|
||||
@@ -99,7 +99,7 @@ void displayWarning(evt_t event)
|
||||
}
|
||||
}
|
||||
|
||||
const char * displayPopupMenu(evt_t event)
|
||||
const char * runPopupMenu(evt_t event)
|
||||
{
|
||||
const char * result = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user