Fixed warnings

This commit is contained in:
YuSanka 2024-03-04 11:27:45 +01:00
parent 705102e947
commit c857ae8db5
2 changed files with 4 additions and 2 deletions

View File

@ -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()); });
}
}

View File

@ -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);
}