File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ app_settings_src = $(addprefix apps/settings/,\
2626 sub_menu/selectable_view_with_messages.cpp \
2727)
2828
29+ SFLAGS += -DOMEGA_STATE="$(OMEGA_STATE ) "
30+
2931app_settings_src += $(app_settings_test_src )
3032apps_src += $(app_settings_src )
3133
Original file line number Diff line number Diff line change 99#define MP_STRINGIFY_HELPER (x ) #x
1010#define MP_STRINGIFY (x ) MP_STRINGIFY_HELPER(x)
1111
12+ #ifndef OMEGA_STATE
13+ #error This file expects OMEGA_STATE to be defined
14+ #endif
15+
1216namespace Settings {
1317
1418AboutController::AboutController (Responder * parentResponder) :
@@ -53,7 +57,7 @@ bool AboutController::handleEvent(Ion::Events::Event event) {
5357 if (childLabel == I18n::Message::OmegaVersion) {
5458 MessageTableCellWithBuffer * myCell = (MessageTableCellWithBuffer *)m_selectableTableView.selectedCell ();
5559 if (strcmp (myCell->accessoryText (), Ion::omegaVersion ()) == 0 ) {
56- myCell->setAccessoryText (" Dev " ); // Change for public/dev
60+ myCell->setAccessoryText (MP_STRINGIFY (OMEGA_STATE) ); // Change for public/dev
5761 return true ;
5862 }
5963 myCell->setAccessoryText (Ion::omegaVersion ());
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ HOME_DISPLAY_EXTERNALS ?= 1
77EPSILON_VERSION ?= 15.3.1
88OMEGA_VERSION ?= 1.21.0
99# OMEGA_USERNAME ?= N/A
10+ OMEGA_STATE ?= dev
1011EPSILON_APPS ?= calculation rpn graph code statistics probability solver atom sequence regression settings external
1112EPSILON_I18N ?= en fr
1213EPSILON_COUNTRIES ?= WW CA DE ES FR GB IT NL PT US
You can’t perform that action at this time.
0 commit comments