Skip to content

Commit

Permalink
fixed widget click
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Jul 26, 2019
1 parent c22d96b commit e86e99c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/eez/gui/app_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -467,10 +467,11 @@ void AppContext::updateAppView(WidgetCursor &widgetCursor) {
m_isTopPage = false;

for (++i; i < m_pageNavigationStackPointer; i++) {

bool paintedSaved = mcu::display::g_painted;
mcu::display::g_painted = false;

widgetCursor.cursor = Cursor();

m_activePageId = m_pageNavigationStack[i].pageId;
m_activePage = m_pageNavigationStack[i].page;
updatePage(m_pageNavigationStack[i].repaint || repaint, widgetCursor);
Expand All @@ -489,6 +490,8 @@ void AppContext::updateAppView(WidgetCursor &widgetCursor) {

m_isTopPage = true;

widgetCursor.cursor = Cursor();

m_activePageId = m_activePageIdSaved;
m_activePageIdSaved = INTERNAL_PAGE_ID_NONE;
m_activePage = activePageSaved;
Expand Down

0 comments on commit e86e99c

Please sign in to comment.