mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-07-03 02:37:39 +00:00
Improve management of engines tabs
This commit is contained in:
parent
d9818df879
commit
e0babeaf88
5 changed files with 22 additions and 1 deletions
|
@ -38,6 +38,7 @@ EngineTab::EngineTab(wxWindow *parent, std::uint32_t id)
|
|||
SetLabel(name);
|
||||
engine_name->SetValue(name);
|
||||
engine_location->SetValue(conf->Read(confGroup + "/path"));
|
||||
engine_id=id;
|
||||
CONFIG_CLOSE(conf);
|
||||
|
||||
// Load existing configuration
|
||||
|
|
|
@ -21,6 +21,7 @@ public:
|
|||
void ApplyPreferences() {}
|
||||
std::shared_ptr<Game> GetGame() { return nullptr; }
|
||||
std::shared_ptr<GameBase> GetBase() { return nullptr; }
|
||||
std::uint32_t GetEngineId() { return engine_id; };
|
||||
void OnSave(wxCommandEvent &event);
|
||||
void OnDelete(wxCommandEvent &event);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue