Update the db import game feature

This commit is contained in:
Loic Guegan 2022-12-25 11:13:05 +01:00
parent 1293b59ed5
commit 4ffba108e3
10 changed files with 47 additions and 41 deletions

View file

@ -1,8 +1,13 @@
#include "BaseImportTab.hpp"
BaseImportTab::BaseImportTab(wxFrame *parent):
TabBase_TabImport(parent)
{
for (TabInfos *i : wxGetApp().ListTabInfos()) {
if (i->type == TabInfos::GAME || i->type == TabInfos::BASE) {
wxWindow *win = dynamic_cast<wxWindow *>(i);
opened_game_list->Append(win->GetLabel(),i);
opened_game_list->SetSelection(0);
}
}
}