mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	On Windows, load the icon either from the exe, or fron the ico file.
This commit is contained in:
		
							parent
							
								
									39679f9518
								
							
						
					
					
						commit
						a069c41b20
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -22,7 +22,10 @@ sub new { | |||
|      | ||||
|     my $self = $class->SUPER::new(undef, -1, $Slic3r::FORK_NAME . ' - ' . $Slic3r::VERSION, wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE); | ||||
|     if ($^O eq 'MSWin32') { | ||||
|         $self->SetIcon(Wx::Icon->new($Slic3r::var->("Slic3r.ico"), wxBITMAP_TYPE_ICO)); | ||||
|         # Load the icon either from the exe, or fron the ico file. | ||||
|         my $iconfile = $Slic3r::var->('..\slic3r.exe'); | ||||
|         $iconfile = $Slic3r::var->("Slic3r.ico") unless -f $iconfile; | ||||
|         $self->SetIcon(Wx::Icon->new($iconfile, wxBITMAP_TYPE_ICO)); | ||||
|     } else { | ||||
|         $self->SetIcon(Wx::Icon->new($Slic3r::var->("Slic3r_128px.png"), wxBITMAP_TYPE_PNG));         | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 bubnikv
						bubnikv