mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 09:02:06 +00:00
* Fix extruder_id out-of-bounds in switch_excluder Added a check to reset extruder_id to 0 if it exceeds the size of nozzle_volumes or extruders, preventing potential out-of-bounds access. Co-Authored-By: Christopher R. Palmer <1305033+crpalmer@users.noreply.github.com> * Add custom nozzle diameter option in sidebar Ensures that if the actual nozzle diameter is not present in the list, it is added as a custom option. This improves user experience by allowing selection of non-standard nozzle diameters. Refactor nozzle diameter selection logic in Sidebar Simplified the logic for updating the extruder nozzle diameter combo box by removing redundant checks and streamlining the addition of custom nozzle diameters. This improves code clarity and ensures the actual nozzle diameter from the printer config is always considered. Co-Authored-By: yw4z <yw4z@outlook.com> * Prevent profile switch if selected diameter matches nozzle Adds a check in Sidebar::priv::switch_diameter to avoid switching printer profiles when the selected diameter matches the current nozzle diameter in the configuration. This prevents unnecessary profile changes and improves user experience. --------- Co-authored-by: Christopher R. Palmer <1305033+crpalmer@users.noreply.github.com> Co-authored-by: yw4z <yw4z@outlook.com>