diff --git a/lib/Slic3r/GUI/Plater.pm b/lib/Slic3r/GUI/Plater.pm index 88d4d8934..9eab5172c 100644 --- a/lib/Slic3r/GUI/Plater.pm +++ b/lib/Slic3r/GUI/Plater.pm @@ -1624,12 +1624,12 @@ sub _get_export_file { } elsif ($format eq 'AMF') { - if ($^O eq 'MacOS') { - # It seems that MacOS does not like double extension - $suffix = '.amf'; - } else { - $suffix = '.zip.amf'; - } + if (&Wx::wxMAC) { + # It seems that MacOS does not like double extension + $suffix = '.amf'; + } else { + $suffix = '.zip.amf'; + } $wildcard = 'amf'; } elsif ($format eq '3MF')