mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 12:11:15 -06:00 
			
		
		
		
	More fixes for Unicode filenames support on Windows and OS X
This commit is contained in:
		
							parent
							
								
									7b65a35519
								
							
						
					
					
						commit
						56b993bb89
					
				
					 3 changed files with 18 additions and 2 deletions
				
			
		|  | @ -204,6 +204,8 @@ sub select_preset { | |||
| 
 | ||||
| sub select_preset_by_name { | ||||
|     my ($self, $name) = @_; | ||||
|      | ||||
|     $name = Unicode::Normalize::NFC($name); | ||||
|     $self->select_preset(first { $self->{presets}[$_]->name eq $name } 0 .. $#{$self->{presets}}); | ||||
| } | ||||
| 
 | ||||
|  | @ -1462,7 +1464,7 @@ sub config { | |||
|     if ($self->default) { | ||||
|         return Slic3r::Config->new_from_defaults(@$keys); | ||||
|     } else { | ||||
|         if (!-e $self->file) { | ||||
|         if (!-e Slic3r::encode_path($self->file)) { | ||||
|             Slic3r::GUI::show_error(undef, "The selected preset does not exist anymore (" . $self->file . ")."); | ||||
|             return undef; | ||||
|         } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci