ENH: printer nozzle diameter select

Change-Id: Ibf8b74e1f93a7c387db3f0fb5e6e733165322322
Jira: STUDIO-9140
(cherry picked from commit c990314567383d3bfff72ac11df6471e0a10f315)
This commit is contained in:
chunmao.guo
2025-09-21 14:37:37 +08:00
committed by Noisyfox
parent 9eae5935d9
commit d31c4427aa
7 changed files with 173 additions and 50 deletions
+2
View File
@@ -649,6 +649,8 @@ public:
// Return index of the first compatible preset. Certainly at least the '- default -' preset shall be compatible.
size_t first_compatible_idx() const { return this->first_compatible_idx([](const Preset&) -> int { return 0; }); }
std::vector<std::string> diameters_of_selected_printer();
// Return index of the first visible preset. Certainly at least the '- default -' preset shall be visible.
// Return the first visible preset. Certainly at least the '- default -' preset shall be visible.
Preset& first_visible() { return this->preset(this->first_visible_idx()); }