void SystemInfoView::Update() { if (m_refresh) { SystemChanged(Pi::sectorView->GetSelectedSystem()); m_refresh = false; } }
void SystemInfoView::Update() { switch (m_refresh) { case REFRESH_ALL: SystemChanged(Pi::sectorView->GetSelected()); m_refresh = REFRESH_NONE; assert(NeedsRefresh() == REFRESH_NONE); break; case REFRESH_SELECTED: UpdateIconSelections(); m_refresh = REFRESH_NONE; assert(NeedsRefresh() == REFRESH_NONE); break; case REFRESH_NONE: break; } UIView::Update(); }