Separate Upsilon and Omega versions (#112)

This commit is contained in:
lolocomotive
2022-01-04 20:37:46 +01:00
committed by GitHub
parent 1da537479f
commit 2248e415c4
15 changed files with 86 additions and 42 deletions

View File

@@ -73,6 +73,15 @@ bool AboutController::handleEvent(Ion::Events::Event event) {
myCell->setAccessoryText(Ion::UpsilonVersion());
return true;
}
if (childLabel == I18n::Message::OmegaVersion) {
MessageTableCellWithBuffer * myCell = (MessageTableCellWithBuffer *)m_selectableTableView.selectedCell();
if (strcmp(myCell->accessoryText(), Ion::OmegaVersion()) == 0) {
myCell->setAccessoryText(MP_STRINGIFY(OMEGA_STATE)); //Change for public/dev
return true;
}
myCell->setAccessoryText(Ion::OmegaVersion());
return true;
}
if (childLabel == I18n::Message::MemUse) {
MessageTableCellWithBuffer * myCell = (MessageTableCellWithBuffer *)m_selectableTableView.selectedCell();
@@ -188,8 +197,9 @@ void AboutController::willDisplayCellForIndex(HighlightCell * cell, int index) {
static const char * messages[] = {
(const char*) Ion::username(),
Ion::softwareVersion(),
Ion::UpsilonVersion(),
Ion::OmegaVersion(),
Ion::softwareVersion(),
mpVersion,
batteryLevel,
"",