From f4fa9083b3932c080d7fc2c0b9cef50175310547 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Tue, 25 Apr 2017 18:19:13 +0200 Subject: [PATCH] [apps] Hide matrix and list variables Change-Id: Ifa3aaf0e5e2fb6e4e3749f1e31f259de2fd34804 --- apps/variable_box_controller.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/variable_box_controller.cpp b/apps/variable_box_controller.cpp index 98c4a5933..ddb2d3338 100644 --- a/apps/variable_box_controller.cpp +++ b/apps/variable_box_controller.cpp @@ -33,7 +33,8 @@ void VariableBoxController::ContentViewController::didBecomeFirstResponder() { bool VariableBoxController::ContentViewController::handleEvent(Ion::Events::Event event) { if (event == Ion::Events::Back) { - if (m_currentPage == Page::RootMenu) { + /* TODO: implement matrix and list contexts */ + if (m_currentPage == Page::Scalar) {//if (m_currentPage == Page::RootMenu) { m_firstSelectedRow = 0; app()->dismissModalViewController(); return true; @@ -228,7 +229,8 @@ void VariableBoxController::ContentViewController::reloadData() { } void VariableBoxController::ContentViewController::resetPage() { - m_currentPage = Page::RootMenu; + /* TODO: implement matrix and list contexts */ + m_currentPage = Page::Scalar;//Page::RootMenu; } void VariableBoxController::ContentViewController::deselectTable() {