Compare commits
No commits in common. "cd2b2ba624565f8905ef511f754fefe8296d2ee8" and "e5d250556fcb586f3f136a83e4a3fad3d9b14ac8" have entirely different histories.
cd2b2ba624
...
e5d250556f
@ -292,9 +292,7 @@ void ScreenManager::displayNextView()
|
|||||||
{
|
{
|
||||||
_forceRefresh = true;
|
_forceRefresh = true;
|
||||||
_error = OK;
|
_error = OK;
|
||||||
if(isListEmpty(_viewLinkedList))return;
|
if(_currentView == NO_CURRENT_VIEW && !isListEmpty(_viewLinkedList))
|
||||||
|
|
||||||
if(_currentView == NO_CURRENT_VIEW)
|
|
||||||
{
|
{
|
||||||
_currentView = _viewLinkedList;
|
_currentView = _viewLinkedList;
|
||||||
}
|
}
|
||||||
@ -303,7 +301,7 @@ void ScreenManager::displayNextView()
|
|||||||
_currentView = _currentView->next;
|
_currentView = _currentView->next;
|
||||||
}
|
}
|
||||||
//End of the views, we cycle again :)
|
//End of the views, we cycle again :)
|
||||||
else if(isListEmpty(_currentView->next))
|
else if(isListEmpty(_currentView->next) && !isListEmpty(_viewLinkedList))
|
||||||
{
|
{
|
||||||
_currentView = _viewLinkedList;
|
_currentView = _viewLinkedList;
|
||||||
}
|
}
|
||||||
@ -325,9 +323,7 @@ void ScreenManager::displayPreviousView()
|
|||||||
{
|
{
|
||||||
_forceRefresh = true;
|
_forceRefresh = true;
|
||||||
_error = OK;
|
_error = OK;
|
||||||
if(isListEmpty(_tail))return;
|
if(_currentView == NO_CURRENT_VIEW && !isListEmpty(_tail))
|
||||||
|
|
||||||
if(_currentView == NO_CURRENT_VIEW)
|
|
||||||
{
|
{
|
||||||
_currentView = _tail;
|
_currentView = _tail;
|
||||||
}
|
}
|
||||||
@ -336,7 +332,7 @@ void ScreenManager::displayPreviousView()
|
|||||||
_currentView = _currentView->previous;
|
_currentView = _currentView->previous;
|
||||||
}
|
}
|
||||||
//End of the views, we cycle again :)
|
//End of the views, we cycle again :)
|
||||||
else if(isListEmpty(_currentView->previous))
|
else if(isListEmpty(_currentView->previous) && !isListEmpty(_tail))
|
||||||
{
|
{
|
||||||
_currentView = _tail;
|
_currentView = _tail;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user