[apps/settings] Add comment on version cycle display

This commit is contained in:
Gabriel Ozouf
2021-04-15 16:01:50 +02:00
committed by Gabriel
parent f8798aa561
commit 313b5ed222

View File

@@ -24,6 +24,9 @@ bool AboutController::handleEvent(Ion::Events::Event event) {
}
if (event == Ion::Events::OK || event == Ion::Events::EXE) {
if (selectedRow() == 0) {
/* When pressing OK on the version cell, the display cycles between
* Epsilon version number, the commit hash for this build of Epsilon, and
* the PCB revision number. */
MessageTableCellWithBuffer * myCell = (MessageTableCellWithBuffer *)m_selectableTableView.selectedCell();
const char * currentText = myCell->accessoryText();
if (strcmp(currentText, Ion::patchLevel()) == 0) {