mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-30 04:11:00 +00:00
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:
@@ -1807,8 +1807,7 @@ void PresetCollection::commit_user_preset(UserPresetLoad &&loaded, std::deque<Pr
|
||||
|
||||
if (loaded.complete) {
|
||||
if (loaded.save_compatible_printers) {
|
||||
// The preset loads with the derived printer whether or not its file
|
||||
// can be rewritten.
|
||||
// A filesystem error from the rewrite is counted, and the preset still loads.
|
||||
try {
|
||||
if (!read_only)
|
||||
preset.save(nullptr);
|
||||
|
||||
Reference in New Issue
Block a user