Check for unsaved changes before running configuration wizard
This commit is contained in:
parent
df658eb636
commit
d90e82faa3
1 changed files with 1 additions and 0 deletions
|
@ -226,6 +226,7 @@ sub load_config {
|
||||||
sub config_wizard {
|
sub config_wizard {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
|
|
||||||
|
return unless $self->check_unsaved_changes;
|
||||||
if (Slic3r::GUI::ConfigWizard->new($self)->run) {
|
if (Slic3r::GUI::ConfigWizard->new($self)->run) {
|
||||||
$_->() for values %Slic3r::GUI::OptionsGroup::reload_callbacks;
|
$_->() for values %Slic3r::GUI::OptionsGroup::reload_callbacks;
|
||||||
$_->set_dirty(1) for values %{$self->{options_tabs}};
|
$_->set_dirty(1) for values %{$self->{options_tabs}};
|
||||||
|
|
Loading…
Reference in a new issue