mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Automatically show configuration wizard on first run
This commit is contained in:
		
							parent
							
								
									7211561ab3
								
							
						
					
					
						commit
						84cfe7afc7
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -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; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Henrik Brix Andersen
						Henrik Brix Andersen