libslic3r: say what the write-back catch in commit_user_preset covers

Preset::save throws a runtime_error only when it cannot create the preset's
folder; a failed write is silent, and invalid UTF-8 throws a type_error that
is not caught here. The comment now claims only the case the catch handles.
This commit is contained in:
raistlin7447
2026-09-28 07:19:58 -05:00
parent 7f30eb8a49
commit 8b091f709b
+1 -2
View File
@@ -1807,8 +1807,7 @@ void PresetCollection::commit_user_preset(UserPresetLoad &&loaded, std::deque<Pr
if (loaded.complete) { if (loaded.complete) {
if (loaded.save_compatible_printers) { if (loaded.save_compatible_printers) {
// The preset loads with the derived printer whether or not its file // A filesystem error from the rewrite is counted, and the preset still loads.
// can be rewritten.
try { try {
if (!read_only) if (!read_only)
preset.save(nullptr); preset.save(nullptr);