void WIZARD_3DSHAPE_LIBS_DOWNLOADER::setupGithubList() { // Enable 'Next' only if there is at least one library selected wxArrayInt checkedIndices; m_checkList3Dlibnames->GetCheckedItems( checkedIndices ); enableNext( checkedIndices.GetCount() > 0 ); // Update only if necessary if( m_githubLibs.GetCount() == 0 ) getLibsListGithub( m_githubLibs ); m_searchCtrl3Dlibs->Clear(); // Clear the review list so it will be reloaded m_libraries.clear(); }
void WIZARD_FPLIB_TABLE::setupGithubList() { // Enable 'Next' only if there is at least one library selected wxArrayInt checkedIndices; m_checkListGH->GetCheckedItems( checkedIndices ); enableNext( checkedIndices.GetCount() > 0 ); // Update only if necessary if( m_githubLibs.GetCount() == 0 ) getLibsListGithub( m_githubLibs ); m_searchCtrlGH->Clear(); // Clear the review list so it will be reloaded m_libraries.clear(); m_listCtrlReview->DeleteAllItems(); }