mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 10:47:50 -06:00
Dont use select_preset from preset_tree...
This commit is contained in:
parent
674ddcd73a
commit
0cca7bb5e7
1 changed files with 1 additions and 7 deletions
|
@ -58,9 +58,8 @@ void Tab::create_preset_tab(PresetBundle *preset_bundle)
|
||||||
{
|
{
|
||||||
m_cc_presets_choice->SetText(selected);
|
m_cc_presets_choice->SetText(selected);
|
||||||
std::string selected_string = selected.ToUTF8().data();
|
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); });
|
// 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();
|
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_sys = popup->AppendContainer(wxDataViewItem(0), _(L("System presets")));
|
||||||
auto root_def = popup->AppendContainer(wxDataViewItem(0), _(L("Default presets")));
|
auto root_def = popup->AppendContainer(wxDataViewItem(0), _(L("Default presets")));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue