mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Run the wizard from OnIdle routine to be executed first after the UI
is initialized. This is necessary for the UI to initialize correctly on OSX.
This commit is contained in:
		
							parent
							
								
									4bbe328117
								
							
						
					
					
						commit
						88e9ba510b
					
				
					 1 changed files with 8 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -116,9 +116,6 @@ sub OnInit {
 | 
			
		|||
        no_plater       => $no_plater,
 | 
			
		||||
    );
 | 
			
		||||
    $self->SetTopWindow($frame);
 | 
			
		||||
    if ($run_wizard) {
 | 
			
		||||
        $self->{mainframe}->config_wizard;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    EVT_IDLE($frame, sub {
 | 
			
		||||
        while (my $cb = shift @cb) {
 | 
			
		||||
| 
						 | 
				
			
			@ -126,6 +123,14 @@ sub OnInit {
 | 
			
		|||
        }
 | 
			
		||||
        $self->{app_config}->save if $self->{app_config}->dirty;
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    if ($run_wizard) {
 | 
			
		||||
        # On OSX the UI was not initialized correctly if the wizard was called
 | 
			
		||||
        # before the UI was up and running.
 | 
			
		||||
        $self->CallAfter(sub {
 | 
			
		||||
            $self->{mainframe}->config_wizard;
 | 
			
		||||
        });
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue