mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Support preset names with Unicode characters. #2527
This commit is contained in:
parent
9c08dfb50c
commit
aa5bafb8be
2 changed files with 3 additions and 2 deletions
|
@ -217,6 +217,7 @@ sub presets {
|
|||
opendir my $dh, Slic3r::encode_path("$Slic3r::GUI::datadir/$section")
|
||||
or die "Failed to read directory $Slic3r::GUI::datadir/$section (errno: $!)\n";
|
||||
foreach my $file (grep /\.ini$/i, readdir $dh) {
|
||||
$file = Slic3r::decode_path($file);
|
||||
my $name = basename($file);
|
||||
$name =~ s/\.ini$//;
|
||||
$presets{$name} = "$Slic3r::GUI::datadir/$section/$file";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue