Skip to content

Commit 8599764

Browse files
Merge pull request #451 from RedGl0w/someFixOnOmega21
Added env var for omega state
2 parents 1354b3e + 61646cc commit 8599764

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

apps/settings/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
2931
app_settings_src += $(app_settings_test_src)
3032
apps_src += $(app_settings_src)
3133

apps/settings/sub_menu/about_controller.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
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+
1216
namespace Settings {
1317

1418
AboutController::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());

build/config.mak

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ HOME_DISPLAY_EXTERNALS ?= 1
77
EPSILON_VERSION ?= 15.3.1
88
OMEGA_VERSION ?= 1.21.0
99
# OMEGA_USERNAME ?= N/A
10+
OMEGA_STATE ?= dev
1011
EPSILON_APPS ?= calculation rpn graph code statistics probability solver atom sequence regression settings external
1112
EPSILON_I18N ?= en fr
1213
EPSILON_COUNTRIES ?= WW CA DE ES FR GB IT NL PT US

0 commit comments

Comments
 (0)