diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-12-25 11:13:05 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-12-25 11:13:05 +0100 |
| commit | 4ffba108e367926f1c254bb1e2f07b6dbace4f32 (patch) | |
| tree | dbd0cb1795622da335035895c1a03c30ed037eeb /src/base_tab/BaseImportTab.cpp | |
| parent | 1293b59ed55423671dc204d3cb09822c9c599e55 (diff) | |
Update the db import game feature
Diffstat (limited to 'src/base_tab/BaseImportTab.cpp')
| -rw-r--r-- | src/base_tab/BaseImportTab.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/base_tab/BaseImportTab.cpp b/src/base_tab/BaseImportTab.cpp index 6c3ef5d..cd0d980 100644 --- a/src/base_tab/BaseImportTab.cpp +++ b/src/base_tab/BaseImportTab.cpp @@ -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); + } + } } |
