fix(preset): type Feld statt type() Methode in Preset::save()

This commit is contained in:
viewit
2026-06-02 19:21:59 +02:00
parent 7249588d7c
commit aed7206f13

View File

@@ -643,7 +643,7 @@ void Preset::save(DynamicPrintConfig* parent_config)
// Inherited presets (e.g. "My PLA" inheriting "Generic PLA @System") previously had
// no filament_id which caused AMS sync to fall back to the parent's Generic ID.
if (this->is_user() && this->filament_id.empty() && !this->name.empty() &&
this->type() == Preset::TYPE_FILAMENT) {
this->type == Preset::TYPE_FILAMENT) {
boost::uuids::detail::md5 hash;
boost::uuids::detail::md5::digest_type digest;
hash.process_bytes(this->name.data(), this->name.size());