Add your name in the settings

This commit is contained in:
Quentin
2019-11-02 19:29:06 +01:00
parent 145c028d3a
commit aacdce34ba
14 changed files with 37 additions and 12 deletions

View File

@@ -22,7 +22,7 @@ bool AboutController::handleEvent(Ion::Events::Event event) {
return true;
}
if (event == Ion::Events::OK || event == Ion::Events::EXE) {
if (selectedRow() == 0) {
if (selectedRow() == 1) {
MessageTableCellWithBuffer * myCell = (MessageTableCellWithBuffer *)m_selectableTableView.selectedCell();
if (strcmp(myCell->accessoryText(), Ion::patchLevel()) == 0) {
myCell->setAccessoryText(Ion::softwareVersion());
@@ -31,7 +31,7 @@ bool AboutController::handleEvent(Ion::Events::Event event) {
myCell->setAccessoryText(Ion::patchLevel());
return true;
}
if (selectedRow() == 1) {
if (selectedRow() == 2) {
MessageTableCellWithBuffer * myCell = (MessageTableCellWithBuffer *)m_selectableTableView.selectedCell();
if (strcmp(myCell->accessoryText(), Ion::customSoftwareVersion()) == 0) {
myCell->setAccessoryText("Public"); //Change for public/dev
@@ -60,12 +60,13 @@ void AboutController::willDisplayCellForIndex(HighlightCell * cell, int index) {
GenericSubController::willDisplayCellForIndex(cell, index);
MessageTableCellWithBuffer * myCell = (MessageTableCellWithBuffer *)cell;
static const char * messages[] = {
Ion::username(),
Ion::softwareVersion(),
Ion::customSoftwareVersion(),
Ion::serialNumber(),
Ion::fccId()
};
assert(index >= 0 && index < 4);
assert(index >= 0 && index < 5);
myCell->setAccessoryText(messages[index]);
}