Added env var for omega state

This commit is contained in:
Joachim LF
2021-01-29 12:21:40 +01:00
parent 44fc94469e
commit 61646ccabc
3 changed files with 8 additions and 1 deletions

View File

@@ -9,6 +9,10 @@
#define MP_STRINGIFY_HELPER(x) #x
#define MP_STRINGIFY(x) MP_STRINGIFY_HELPER(x)
#ifndef OMEGA_STATE
#error This file expects OMEGA_STATE to be defined
#endif
namespace Settings {
AboutController::AboutController(Responder * parentResponder) :
@@ -53,7 +57,7 @@ bool AboutController::handleEvent(Ion::Events::Event event) {
if (childLabel == I18n::Message::OmegaVersion) {
MessageTableCellWithBuffer * myCell = (MessageTableCellWithBuffer *)m_selectableTableView.selectedCell();
if (strcmp(myCell->accessoryText(), Ion::omegaVersion()) == 0) {
myCell->setAccessoryText("Dev"); //Change for public/dev
myCell->setAccessoryText(MP_STRINGIFY(OMEGA_STATE)); //Change for public/dev
return true;
}
myCell->setAccessoryText(Ion::omegaVersion());