Skip to content

Commit

Permalink
Fix search filament & search icon
Browse files Browse the repository at this point in the history
  • Loading branch information
supermerill committed Jun 4, 2024
1 parent 3f9c1e8 commit a9c8af4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/slic3r/GUI/Search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ void OptionsSearcher::append_options(DynamicPrintConfig* config, Preset::Type ty

int cnt = 0;

if ( (type == Preset::TYPE_SLA_MATERIAL || type == Preset::TYPE_PRINTER) && opt_key != "bed_shape")
if ( (type == Preset::TYPE_SLA_MATERIAL || type == Preset::TYPE_FFF_FILAMENT || type == Preset::TYPE_PRINTER) && opt_key != "bed_shape")
switch (config->option(opt_key)->type())
{
case coInts: change_opt_key<ConfigOptionInts >(opt_key, config, cnt); break;
Expand Down Expand Up @@ -997,8 +997,8 @@ void SearchListModel::Prepend(const std::string& label)
wxString str = from_u8(label).Remove(0, 1);

int icon_idx = 0;
if(icon_c < icon_idxs.size())
icon_idx = icon_idxs.at(icon_c);
if(auto it = icon_idxs.find(icon_c); it != icon_idxs.end())
icon_idx = it->second;
m_values.emplace_back(str, icon_idx);

RowPrepended();
Expand Down

0 comments on commit a9c8af4

Please sign in to comment.