mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-21 20:18:17 +08:00
Fix Print preset being dirty at load time
This commit is contained in:
parent
b9e8fbacb7
commit
adf3d615bd
@ -209,7 +209,13 @@ sub on_select_preset {
|
|||||||
|
|
||||||
$self->on_preset_loaded;
|
$self->on_preset_loaded;
|
||||||
$self->reload_values;
|
$self->reload_values;
|
||||||
|
|
||||||
|
# use CallAfter because some field triggers schedule on_change calls using CallAfter,
|
||||||
|
# and we don't want them to be called after this set_dirty(0) as they would mark the
|
||||||
|
# preset dirty again
|
||||||
|
wxTheApp->CallAfter(sub {
|
||||||
$self->set_dirty(0);
|
$self->set_dirty(0);
|
||||||
|
});
|
||||||
$Slic3r::GUI::Settings->{presets}{$self->name} = $preset->{file} ? basename($preset->{file}) : '';
|
$Slic3r::GUI::Settings->{presets}{$self->name} = $preset->{file} ? basename($preset->{file}) : '';
|
||||||
};
|
};
|
||||||
if ($@) {
|
if ($@) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user