mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-30 12:21:05 +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.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);
|
||||||
|
|||||||
Reference in New Issue
Block a user