mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[apps/settings] Fix assert in about submenu when username enabled (#134)
This commit is contained in:
@@ -168,7 +168,6 @@ bool AboutController::hasUsernameCell() const {
|
||||
void AboutController::willDisplayCellForIndex(HighlightCell * cell, int index) {
|
||||
int i = index + (!hasUsernameCell());
|
||||
GenericSubController::willDisplayCellForIndex(cell, i);
|
||||
assert(index >= 0 && index < k_totalNumberOfCell);
|
||||
if (m_messageTreeModel->childAtIndex(i)->label() == I18n::Message::Contributors) {
|
||||
MessageTableCellWithChevronAndMessage * myTextCell = (MessageTableCellWithChevronAndMessage *)cell;
|
||||
myTextCell->setSubtitle(I18n::Message::Default);
|
||||
|
||||
@@ -22,7 +22,7 @@ public:
|
||||
int typeAtLocation(int i, int j) override;
|
||||
int numberOfRows() const override;
|
||||
private:
|
||||
constexpr static int k_totalNumberOfCell = 9;
|
||||
constexpr static int k_totalNumberOfCell = 8;
|
||||
bool hasUsernameCell() const;
|
||||
ContributorsController m_contributorsController;
|
||||
MessageTableCellWithChevronAndMessage m_contributorsCell;
|
||||
|
||||
Reference in New Issue
Block a user