mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
Fixed regression introduced with recent fixes to UTF-8 preset names handling on Windows that prevented their load on OS X (TODO: test on Linux)
This commit is contained in:
@@ -268,7 +268,11 @@ sub encode_path {
|
|||||||
sub decode_path {
|
sub decode_path {
|
||||||
my ($path) = @_;
|
my ($path) = @_;
|
||||||
|
|
||||||
utf8::upgrade($path) if $^O eq 'MSWin32';
|
if ($^O eq 'MSWin32') {
|
||||||
|
utf8::upgrade($path);
|
||||||
|
} else {
|
||||||
|
utf8::decode($path);
|
||||||
|
}
|
||||||
return $path;
|
return $path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user