Automatically show configuration wizard on first run

degen-loop-screen
Henrik Brix Andersen 2012-06-27 22:13:57 +02:00
parent 7211561ab3
commit 84cfe7afc7
1 changed files with 3 additions and 0 deletions

View File

@ -39,6 +39,7 @@ sub OnInit {
# locate or create data directory
$datadir = Wx::StandardPaths::Get->GetUserDataDir;
Slic3r::debugf "Data directory: %s\n", $datadir;
my $run_wizard = (-d $datadir) ? 0 : 1;
for ($datadir, "$datadir/print", "$datadir/filament", "$datadir/printer") {
mkdir or $self->fatal_error("Slic3r was unable to create its data directory at $_ (errno: $!).")
unless -d $_;
@ -106,6 +107,8 @@ sub OnInit {
$frame->Show;
$frame->Layout;
$frame->{skeinpanel}->config_wizard if $run_wizard;
return 1;
}