mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
Added env var for omega state
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user