ENH: show category for multi extruders in search

Change-Id: I2441097f076e772dcc0b11245c6d22ed22bfad2b
Jira: STUDIO-10187
(cherry picked from commit 6eba5f3b4821c8302d1423090e3fcdf3309d83b9)
This commit is contained in:
chunmao.guo
2025-03-07 13:44:57 +08:00
committed by Noisyfox
parent f378a41f7f
commit 4472c801b9
3 changed files with 26 additions and 8 deletions

View File

@@ -62,6 +62,7 @@ struct Option
std::wstring group_local;
std::wstring category;
std::wstring category_local;
bool multi_category { false };
std::string opt_key() const;
};
@@ -100,10 +101,7 @@ class OptionsSearcher
void append_options(DynamicPrintConfig *config, Preset::Type type, ConfigOptionMode mode);
void sort_options()
{
std::sort(options.begin(), options.end(), [](const Option &o1, const Option &o2) { return o1.label < o2.label; });
}
void sort_options();
void sort_found()
{
std::sort(found.begin(), found.end(),