diff --git a/companion/src/warnings.h b/companion/src/warnings.h index c0bff9b4d..a808ee5b0 100644 --- a/companion/src/warnings.h +++ b/companion/src/warnings.h @@ -47,6 +47,7 @@ class AppMessages { + Q_OBJECT Q_DECLARE_TR_FUNCTIONS("AppMessages") public: // These are used for saving "[don't] show this message again" user preferences. diff --git a/radio/src/gui/128x64/model_special_functions.cpp b/radio/src/gui/128x64/model_special_functions.cpp index 51313dd8d..c46f26a2f 100644 --- a/radio/src/gui/128x64/model_special_functions.cpp +++ b/radio/src/gui/128x64/model_special_functions.cpp @@ -148,9 +148,8 @@ void menuSpecialFunctions(event_t event, CustomFunctionData * functions, CustomF #if defined(PCBTARANIS) #if defined(PCBXLITE) - if (menuHorizontalPosition==0 && event==EVT_KEY_LONG(KEY_ENTER) && !READ_ONLY()) { - killEvents(KEY_ENTER); - if (IS_SHIFT_PRESSED()) { // ENT LONG on xlite brings up switch type menu, so this menu is activated with SHIT + ENT LONG + // ENT LONG on xlite brings up switch type menu, so this menu is activated with SHIT + ENT LONG + if (menuHorizontalPosition==0 && event==EVT_KEY_LONG(KEY_ENTER) && IS_SHIFT_PRESSED() && !READ_ONLY()) { #else if (menuHorizontalPosition<0 && event==EVT_KEY_LONG(KEY_ENTER) && !READ_ONLY()) { #endif @@ -172,9 +171,6 @@ void menuSpecialFunctions(event_t event, CustomFunctionData * functions, CustomF } POPUP_MENU_START(onCustomFunctionsMenu); } -#if defined(PCBXLITE) - } -#endif #endif // PCBTARANIS for (uint8_t i=0; i