SoftFever
feeea3e651
fix: treat renamed printer presets as compatible aliases ( #14504 )
...
# Description
Fixes user filament presets that reference an old printer preset name in
`compatible_printers`, even when the current system printer preset
correctly declares that old name in `renamed_from`.
## Core Issue
`PresetCollection::find_preset()` was updated to resolve `renamed_from`,
but this specific failure does not go through `find_preset()`.
For root user filament presets with empty `inherits`, Orca infers
`compatible_printers` from the filament name suffix after `@`. For
example:
```json
"ELEGOO PLA Base @Elegoo Neptune 4 Pro (0.4 nozzle)"
```
loads with:
```json
"compatible_printers": ["Elegoo Neptune 4 Pro (0.4 nozzle)"]
```
The current system printer preset is named:
```text
Elegoo Neptune 4 Pro 0.4 nozzle
```
and has:
```json
"renamed_from": "Elegoo Neptune 4 Pro (0.4 nozzle)"
```
However, filament compatibility was doing a direct string comparison
against the active printer name. Since that compatibility path does not
call `find_preset()`, the `renamed_from` mapping was never considered.
## Fix
Teach printer compatibility checks to treat
`active_printer.preset.renamed_from` entries as aliases of the active
printer name.
This preserves existing user preset JSON and avoids rewriting
`compatible_printers`, while allowing old printer suffixes to remain
compatible with renamed system printer presets.
## Tests
<!--
> A guide for users on how to download the artifacts from this PR.
-->
[How to Download Pull Requests Artifacts for
Testing](https://www.orcaslicer.com/wiki/how_to_download_pr_artifacts )
2026-07-06 12:27:46 +08:00
..
2026-06-03 10:19:04 -03:00
2026-06-26 02:24:31 +08:00
2024-10-05 21:53:16 +03:00
2026-05-08 19:22:49 +08:00
2026-06-05 20:45:43 +08:00
2026-06-17 15:39:40 +08:00
2026-06-16 23:51:27 +08:00
2025-09-24 22:49:14 -04:00
2024-08-12 00:00:20 +08:00
2026-05-12 15:09:13 +08:00
2026-06-16 15:50:09 -03:00
2026-05-12 15:09:13 +08:00
2024-05-10 23:47:08 +08:00
2026-05-12 15:09:13 +08:00
2026-03-24 09:18:38 -07:00
2026-06-19 10:46:57 +08:00
2026-06-19 10:46:57 +08:00
2026-03-13 02:12:10 -07:00
2026-03-13 02:12:10 -07:00
2025-09-10 10:05:07 +08:00
2025-01-22 10:03:21 +08:00
2023-12-01 10:42:45 +00:00
2024-08-12 00:00:20 +08:00
2025-06-22 23:10:35 +08:00
2026-02-09 20:42:26 +01:00
2024-01-28 10:12:55 +00:00
2024-06-15 14:56:44 +08:00
2026-06-24 19:25:16 +08:00
2026-06-24 19:25:16 +08:00
2025-09-21 13:47:51 +08:00
2026-04-20 19:18:03 -03:00
2025-11-15 11:11:20 -05:00
2026-07-05 13:33:13 +08:00
2026-07-05 13:33:13 +08:00
2026-02-09 20:42:26 +01:00
2026-02-09 20:42:26 +01:00
2025-12-23 22:53:09 +02:00
2025-12-23 22:53:09 +02:00
2025-11-22 15:39:12 +08:00
2026-02-09 20:42:26 +01:00
2026-02-09 20:42:26 +01:00
2024-09-23 19:26:18 +08:00
2026-05-12 15:09:13 +08:00
2025-06-14 21:05:25 +08:00
2025-05-08 16:00:48 +08:00
2025-10-28 15:30:00 +08:00
2026-04-15 22:58:12 +08:00
2026-06-14 17:42:53 +08:00
2026-05-08 13:22:00 -03:00
2023-09-22 16:21:26 +08:00
2026-04-23 00:21:19 +08:00
2024-06-15 14:56:44 +08:00
2026-05-18 12:57:48 +08:00
2026-05-18 12:57:48 +08:00
2025-10-28 15:29:47 +08:00
2026-04-07 22:22:43 +08:00
2025-02-26 23:07:23 +08:00
2026-04-19 20:28:13 -03:00
2024-02-13 23:56:48 +08:00
2023-09-27 21:44:45 +08:00
2025-06-22 23:10:35 +08:00
2026-03-24 09:18:38 -07:00
2023-12-09 22:46:18 +08:00
2023-12-09 22:46:18 +08:00
2023-12-09 22:46:18 +08:00
2025-10-19 22:54:48 +08:00
2025-10-19 22:54:48 +08:00
2026-03-24 09:18:38 -07:00
2026-05-27 22:07:15 +08:00
2024-08-12 00:00:20 +08:00
2026-05-27 22:07:15 +08:00
2026-02-09 20:42:26 +01:00
2024-01-26 20:18:10 +08:00
2025-09-17 09:46:04 +08:00
2025-09-17 09:46:04 +08:00
2025-09-18 23:01:09 +08:00
2025-09-17 09:46:04 +08:00
2026-06-03 10:16:59 -03:00
2025-06-22 23:10:35 +08:00
2026-01-05 22:41:04 +00:00
2025-09-29 20:38:38 +08:00
2025-09-29 20:38:38 +08:00
2025-09-29 20:38:38 +08:00
2026-07-06 12:27:46 +08:00
2026-06-24 19:25:16 +08:00
2025-09-24 22:49:14 -04:00
2025-11-15 11:11:20 -05:00
2026-05-31 12:11:40 +08:00
2026-05-31 12:11:40 +08:00
2025-04-04 23:07:00 +08:00
2026-05-07 22:32:56 +08:00
2026-06-26 02:26:23 +08:00
2024-06-15 14:56:44 +08:00
2024-06-15 14:56:44 +08:00
2025-06-18 17:50:44 +08:00
2023-12-01 10:42:45 +00:00
2026-06-05 20:45:43 +08:00
2026-05-10 15:12:56 +08:00
2026-06-03 10:16:59 -03:00
2026-03-11 17:20:12 -07:00
2024-05-12 23:35:41 +08:00
2025-07-30 21:22:40 +08:00
2025-10-28 15:29:55 +08:00
2026-03-24 09:18:38 -07:00
2025-09-18 17:08:18 +08:00
2025-09-18 17:08:18 +08:00
2025-10-19 19:27:55 +08:00
2026-01-14 19:51:13 +08:00
2025-10-19 21:57:34 +08:00
2025-02-26 23:07:23 +08:00
2024-11-06 20:19:52 +08:00
2024-11-06 20:19:52 +08:00
2026-04-24 16:28:28 +08:00
2026-04-24 16:28:28 +08:00
2024-05-10 23:47:08 +08:00
2026-06-08 18:57:52 +08:00
2026-05-11 14:19:08 +08:00
2026-06-14 17:42:53 +08:00
2025-12-08 22:42:11 +08:00
2026-06-05 20:45:43 +08:00
2025-07-18 16:01:25 +08:00
2026-03-13 01:56:51 -07:00
2026-03-13 01:56:51 -07:00
2023-12-01 10:42:45 +00:00
2024-05-10 23:47:08 +08:00
2024-05-10 23:47:08 +08:00
2024-06-15 14:56:44 +08:00
2024-06-15 14:56:44 +08:00
2025-09-18 16:10:27 +08:00
2025-09-18 16:10:27 +08:00
2024-01-26 20:18:10 +08:00
2024-05-10 23:47:08 +08:00
2026-02-12 08:41:35 +08:00
2025-10-02 17:07:17 +08:00
2025-10-02 17:07:17 +08:00
2025-04-05 17:47:59 +08:00
2026-06-05 20:45:43 +08:00
2026-06-03 10:12:26 -03:00
2025-12-23 23:44:43 +08:00
2025-07-18 15:43:46 +08:00
2024-01-31 11:23:29 +00:00
2024-01-31 11:23:29 +00:00
2026-03-13 01:56:51 -07:00
2026-03-24 09:18:38 -07:00
2026-05-04 15:52:34 +08:00
2025-06-18 17:50:44 +08:00
2025-06-18 17:50:44 +08:00
2026-03-13 01:56:51 -07:00
2026-03-13 01:56:51 -07:00
2026-06-28 01:42:50 +08:00
2026-06-28 01:42:44 +08:00
2026-07-06 12:27:46 +08:00
2026-07-06 12:27:46 +08:00
2026-06-28 01:42:35 +08:00
2026-06-24 19:25:16 +08:00
2026-06-05 20:45:43 +08:00
2025-07-18 15:43:46 +08:00
2026-05-09 13:15:17 +08:00
2026-06-28 01:42:35 +08:00
2026-06-28 01:42:35 +08:00
2025-12-08 22:42:11 +08:00
2026-06-05 20:45:43 +08:00
2026-06-01 16:00:00 +08:00
2026-06-05 20:45:43 +08:00
2024-01-31 11:23:29 +00:00
2026-05-10 02:21:13 +08:00
2024-05-10 23:47:08 +08:00
2023-11-04 11:41:03 +08:00
2024-08-12 00:00:20 +08:00
2026-06-07 13:31:52 +08:00
2026-02-09 20:42:26 +01:00
2026-05-09 13:15:17 +08:00
2026-05-09 13:15:17 +08:00
2024-05-10 23:47:08 +08:00
2024-08-12 00:00:20 +08:00
2026-05-10 15:12:56 +08:00
2026-05-10 15:12:56 +08:00
2025-10-19 19:27:55 +08:00
2025-02-12 22:10:57 +08:00
2023-09-29 23:39:12 +08:00
2023-09-29 23:39:12 +08:00
2024-06-15 14:56:44 +08:00
2024-01-31 11:23:29 +00:00
2026-06-19 10:46:57 +08:00
2024-06-15 14:56:44 +08:00
2026-05-21 16:24:54 +08:00
2026-01-29 19:19:37 +08:00
2026-01-23 17:05:56 +08:00
2024-06-15 14:56:44 +08:00
2026-04-23 10:34:36 -03:00
2025-12-08 22:42:11 +08:00
2025-12-08 22:42:11 +08:00
2026-05-12 15:09:13 +08:00
2026-02-12 08:42:01 +08:00
2026-05-04 20:33:13 +08:00
2025-02-08 11:34:40 +08:00
2026-05-10 12:35:31 +08:00
2026-05-10 12:35:31 +08:00
2024-08-12 00:00:20 +08:00
2024-08-12 00:00:20 +08:00
2024-05-10 23:47:08 +08:00
2024-08-12 00:00:20 +08:00
2024-06-15 14:56:44 +08:00
2026-06-06 23:44:39 +08:00
2026-06-06 23:44:39 +08:00
2026-02-09 20:42:26 +01:00