diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-12-30 16:24:44 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-12-30 16:24:44 +0100 |
| commit | fc9f6bd6a2cb86d42f4d3df87f128efa7501ea48 (patch) | |
| tree | ac76cb5ece65ad122b38ad4deb148b894d5b69b6 /src/ochess.cpp | |
| parent | a762ff6521c688d0131768a831e594a570f01cff (diff) | |
Improve UI
Diffstat (limited to 'src/ochess.cpp')
| -rw-r--r-- | src/ochess.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ochess.cpp b/src/ochess.cpp index 605c1a2..a7fb50b 100644 --- a/src/ochess.cpp +++ b/src/ochess.cpp @@ -25,6 +25,12 @@ void MyApp::NewGame(TabInfos *tabsrc,std::shared_ptr<Game> g){ i->Link(tabsrc); // Link opened game to tabsrc } +void MyApp::NewGame(std::shared_ptr<Game> g){ + MainWindow *w=((MainWindow *)this->GetTopWindow()); + w->NewGame(g); +} + + wxIMPLEMENT_APP(MyApp); |
