aboutsummaryrefslogtreecommitdiff
path: root/src/base_tab/BaseImportTab.cpp
blob: cd0d98070d2a41beee981d2070ad1712562e8e73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);
    }
  }
}