New option for turning autocentering off. #404

This commit is contained in:
Alessandro Ranellucci 2013-12-18 19:11:20 +01:00
parent 15235699e4
commit 266673213d
4 changed files with 30 additions and 7 deletions

View file

@ -54,6 +54,7 @@ our $Settings = {
_ => {
mode => 'simple',
version_check => 1,
autocenter => 1,
},
};
@ -88,6 +89,7 @@ sub OnInit {
$Settings = $ini if $ini;
$last_version = $Settings->{_}{version};
$Settings->{_}{mode} ||= 'expert';
$Settings->{_}{autocenter} //= 1;
}
$Settings->{_}{version} = $Slic3r::VERSION;
Slic3r::GUI->save_settings;