Don't show any dialog if 0 configs were imported

This commit is contained in:
Alessandro Ranellucci 2015-12-17 18:48:50 +01:00
parent 3ec3aaf960
commit d0ad57b64d

View file

@ -619,6 +619,9 @@ sub load_configbundle {
$tab->load_presets;
}
}
return if !$imported;
my $message = sprintf "%d presets successfully imported.", $imported;
if ($self->{mode} eq 'simple' && $Slic3r::GUI::Settings->{_}{mode} eq 'expert') {
Slic3r::GUI::show_info($self, "$message You need to restart Slic3r to make the changes effective.");