Dont use select_preset from preset_tree...

This commit is contained in:
YuSanka 2018-04-09 17:09:00 +02:00
parent 674ddcd73a
commit 0cca7bb5e7

View File

@ -58,9 +58,8 @@ void Tab::create_preset_tab(PresetBundle *preset_bundle)
{
m_cc_presets_choice->SetText(selected);
std::string selected_string = selected.ToUTF8().data();
select_preset(selected_string);
// select_preset(selected_string);
}
// popup->OnDataViewTreeCtrlSelection(evt);
});
// popup->Bind(wxEVT_KEY_DOWN, [popup](wxKeyEvent& evt) { popup->OnKeyEvent(evt); });
@ -2151,11 +2150,6 @@ void Tab::update_tab_presets(wxComboCtrl* ui, bool show_incompatible)
{
popup->DeleteAllItems();
auto root_exp1 = popup->AppendContainer(wxDataViewItem(0), "Exp_root_1");
auto item1 = popup->AppendItem(root_exp1, "child_1_1");
auto item2 = popup->AppendItem(root_exp1, "child_1_2");
auto item3 = popup->AppendItem(item2, "child_2_1");
auto root_sys = popup->AppendContainer(wxDataViewItem(0), _(L("System presets")));
auto root_def = popup->AppendContainer(wxDataViewItem(0), _(L("Default presets")));