mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 00:36:25 +08:00
Fixed warnings
This commit is contained in:
parent
705102e947
commit
c857ae8db5
@ -281,7 +281,7 @@ DPIFrame(NULL, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_S
|
||||
|
||||
if (wxGetApp().is_editor()) {
|
||||
// jump to found option from SearchDialog
|
||||
Bind(wxCUSTOMEVT_JUMP_TO_OPTION, [this](wxCommandEvent& evt) { wxGetApp().jump_to_option(evt.GetInt()); });
|
||||
Bind(wxCUSTOMEVT_JUMP_TO_OPTION, [](wxCommandEvent& evt) { wxGetApp().jump_to_option(evt.GetInt()); });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -710,8 +710,10 @@ Option ConfigOptionsGroup::get_option(const std::string& opt_key, int opt_index
|
||||
std::pair<std::string, int> pair(opt_key, opt_index);
|
||||
m_opt_map.emplace(opt_id, pair);
|
||||
|
||||
if (m_use_custom_ctrl) // fill group and category values just for options from Settings Tab
|
||||
if (m_use_custom_ctrl) {
|
||||
// fill group and category values just for options from Settings Tab
|
||||
wxGetApp().searcher().add_key(opt_id, static_cast<Preset::Type>(this->config_type()), title, this->config_category());
|
||||
}
|
||||
|
||||
return Option(*m_config->def()->get(opt_key), opt_id);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user